> I've tossed up a little script to try and gather some
> information
> about what perl does in different situations, could somebody on
> windows run the script with the locale set to both something
> that uses
> . and something that uses , as decimal separator and post the
> results?
> http://bob.cakebox.net/osm/localetest.pl
On Vista (64-bit):
-----
localetest 1.0
platform: MSWin32
ENV{LANG} =
ENV{LC_NUMERIC} =
ENV{LC_ALL} =
decimal_point= .
before any locale messing
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
use locale
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
no locale
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to (empty string)
effective LC_NUMERIC: English_United Kingdom.1252
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to C
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to nb_NO.utf8
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to de_DE
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to (empty string) (again)
effective LC_NUMERIC: English_United Kingdom.1252
print pi: 3.14159265358979
printf pi: 3.141593
-----
On my German Windows XP SP3 Virtual PC
-----
localetest 1.0
platform: MSWin32
ENV{LANG} =
ENV{LC_NUMERIC} =
ENV{LC_ALL} =
decimal_point= .
before any locale messing
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
use locale
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
no locale
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to (empty string)
effective LC_NUMERIC: German_Germany.1252
print pi: 3.14159265358979
printf pi: 3,141593
LC_NUMERIC changed to C
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to nb_NO.utf8
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to de_DE
effective LC_NUMERIC: C
print pi: 3.14159265358979
printf pi: 3.141593
LC_NUMERIC changed to (empty string) (again)
effective LC_NUMERIC: German_Germany.1252
print pi: 3.14159265358979
printf pi: 3,141593
-----
_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome