[ardour-dev] i18n serialization

Wolfgang Woehl tito at rumford.de
Thu Dec 2 01:17:51 PST 2004


Paul Davis <paul at linuxaudiosystems.com>:
> you are invited to try to get this program to misbehave by setting
> some locale-related environment variables. i seem unable to do so,
> despite what man 3 printf says about LC_NUMERIC ...
>
> in theory using LC_NUMERIC=da_DK should change the print format of
> the larger floating value, and nl_NL should change the scanning of
> the "str" variable.

Yes, doesn't happen with either LANG=da_DK or LANG=nl_NL. Maybe Ulrich 
Drepper knows? Oh, by the way:

$ locale

LANG=de_DE at euro
LC_NUMERIC="de_DE at euro"

$ ./is

LC_NUMERIC=(null)
scanned value is 13.000000
1234567.89
printf gives 13.200000
c++ iostreams says 13.2

$ export LC_NUMERIC=de_DE at euro
$ ./is

LC_NUMERIC=de_DE at euro
[same output as above]

So it seems that neither me nor ardour get to see the right value with 
getenv ("LC_NUMERIC").

Wolfgang





More information about the Ardour-Dev mailing list