Mailing List Archive

LC_FOO and locales in general
After a _very_ cursory testing and reading my copy of POSIX 1003.2
it seems that Perl itself fares quite nicely in the locale world.
Well, to be more exact, quite nicely outside that world and thus
very little touched by any of it. The LC_CTYPE introduced in 5.002b1
is the only thing Perl honours at the moment. There are two problems,
ahem, well, questions:

1) should Perl start thinking more about things
like when a decimal point is not a point, multicharacter
collating elements and character classes and so on?

2) the outside world can surprise Perl when LC_* and LANG
are set. A decimal point is a radix character and not
all radix characters are points. This, according to
my (_very_ limited, mind you) testing, is not quite
so bad as I initially was afraid of.

I shall do more testing *). Those interested, read your setlocale(3),
locale(1), locale(4) man pages and follow the SEE ALSOs thereof.

++jhi;

*) running 'make test' under various LC_* and LANG settings.
Actually, setting LC_ALL should change everything about a
locale that there is to change so changing that to something
that 'locale -a' shows should be enough.