|Perl: the Markov chain saw|
Re^2: Sorting according to locale collationby amir_e_a (Hermit)
|on Apr 22, 2007 at 13:07 UTC ( #611359=note: print w/replies, xml )||Need Help??|
Check what locale settings are installed/available to you in the working environment (perllocale suggests a number of ways to do that)
I tried `locale -a' on Linux, and found out that it doesn't have 'lt', but it does have lt_LT, which should be the same. (It also has 'lithuanian' ... Is it a standard in Unix or some GNU extension?)
Anyway, i tried running this:
When i try 'lt_LT', $loc is 'lt_LT'. When i try 'lt', $loc is undefined, so i must be in the right direction.
However, the sorting still doesn't work as i would expect Can it really be a bug in Linux?
Also, perllocale suggests only Unix'ish ways to list available locales. Is there anything like `locale -a' on Windows? I'm trying to be portable.
In Section Seekers of Perl Wisdom