I
Ian Collins
jacob said:Le 26/02/2014 21:43, Ian Collins a écrit :
Linux mint is in english and my LANG environment variable is:
LANG=en_US.UTF-8
and it doesn't work!
What doesn't?
Do you call setlocale()?
In the Macintosh (not a portable ut a tower Mac) with OS X 10.9.2
the most recent version downloaded 6 hours ago!)
~ $ uname -a
Darwin macpro.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16
19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
the printf("%'d\n",123456789);
will NOT work out of the box without setting the locale to en_US
within the program.
Doesn't setlocale(LC_ALL, "") work? It should and it does on mine.
This is really weird.
Most locale related stuff is!
In my implementation I default to "," as thousand separator, and
probably you can use setlocale but I wouldn't be sure of that, my
implementation of all this stuff is probably not the best part of
lcc-win
In any case under lcc-win it works out of the box without any locale stuff.
Given the POSIX extension is local specific, that's a bit of an odd claim!