LC_NUMERC?

Andreas Beyer beyer at imb-jena.de
Tue Feb 22 09:14:32 CET 2005


I guess the American standard (== C-locale) is virtually an 
international standard. So, we might go for the C-locale in case of 
LC_NUMERIC. In any case this should only be the default! The makefiles 
should have an option to set the locale explicitely. Thus, in order to 
communicate with gnuplot we would still have to set the C-locale 
explicitely (and set it back afterwards). The makefile should allow for 
something like

# set this to 0 to use your local number representation in data files
USE_C_LOCALE 1
[...]
gcc [...] $(USE_C_LOCALE)

There could be people relying on the fact that statist uses their own 
locale when reading data. E.g. MSExcel uses the country specific 
settings. If someone exports data from there, he/she will not 
necessarily get files that are compatible with the C-locale.
Anyway it seems better not to change the entire locale when sending data 
to gnuplot. Otherwise also (error-)messages would be printed in English 
during this phase. That would be a petty after all these translation 
efforts. ;-) Thus, we should definitely only change LC_NUMERIC.

	Andreas


Bernhard Reiter schrieb:
> Am 10. Feb 2005 um 15:55:53 schrieb Andreas Beyer:
> 
>>I think I had the same problem with StatistX. If I remember correctly, 
>>my solution was to set the locale to the default C-locale before passing 
>>anything to gnuplot. Afterwards I set it back to the previous setting.
> 
> 
> Another way to solve this is to only set the LC_CTYPE and LC_MESSAGES
> locales and keep all printf and scanf functions to use the "C" locale instead.
> (Because this is a small change, I just checked it into CVS.)
> 
> The question is: What do we want?
> 
> Gnuplot command: needs the "C" locale for sure.
> 
> Data files: I would hope to keep them interoperable internationally,
> so I tend to prefer "C" locale here, too.
> 
> Number display during interactive use: When the datafile is international
> I also think it is reasonable to keep the numbers printed during the
> interactive sessions international.
> 
> There is another point in that people that are used to the old statist
> might be surprised by the new behaviour if we also changed LC_NUMERC.
> 
> Jakson, Andreas: What do you think?
> 
> 	Bernhard
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Statist-list mailing list
> Statist-list at intevation.de
> https://intevation.de/mailman/listinfo/statist-list




More information about the Statist-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)