From: Michael S. <mi...@ea...> - 2007-05-27 02:01:03
|
Robert L Krawitz wrote: > Date: Sat, 26 May 2007 23:08:51 +0100 > From: "Alastair M. Robinson" <bla...@fa...> > > Robert L Krawitz wrote: > > > Well, that's not good. What happens if the caller doesn't do this? > > As I understand it, if the caller doesn't perform a setlocale(LC_ALL,"") > call, then he will simply get "default" (unlocalized) behaviour. > > > If the caller wants to override the environment settings, how would > > this be done if we *don't* make this change? > > As far as Gutenprint is concerned, I don't think it can be done as the > code currently stands. The caller can, of course, override the > environment settings *after* calling stp_init(), if it needs customized > behaviour in its own code, but as far as I know Gutenprint's own > translation would honour the environment variables. > > So is there any way of making Gutenprint honor whatever locale setting > the caller is using? I don't think it's correct for applications to > have to call setlocale(), but maybe I'm wrong. You need to have code like what we have in CUPS (and similar code is in Cairo, GTK+, etc.) to handle the reading and writing of floating point values... :( -- ______________________________________________________________________ Michael Sweet, Easy Software Products mike at easysw dot com Internet Printing and Publishing Software http://www.easysw.com |