LC_NUMERC? (was: locale.h and gnuplot)

Bernhard Reiter bernhard at intevation.de
Mon Feb 21 22:50:04 CET 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20050221/db40b7ea/attachment.bin


More information about the Statist-list mailing list

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