develooper Front page | perl.perl5.porters | Postings from March 2011

Re: use locale

Thread Previous | Thread Next
March 12, 2011 14:09
Re: use locale
Message ID:
On Sat, Mar 12, 2011 at 11:00 PM, Zsbán Ambrus <> wrote:
> On Sat, Mar 12, 2011 at 12:37 PM, demerphq <> wrote:
>> I consider "use locale" broken and preserved only for backwards
>> compatibility. IMO we should get rid of it, deprecate it, whatever.
> Er what?  How do I do a locale-aware string compare without it?  I'm
> not supposed to call POSIX::strcoll?
> Ambrus

Sorry, it seems the other thread answers this question.  It claims I
should be using Unicode::Collate and somehow tell it what locale to
use.  I don't quite understand how that works (how do I tell it what
locale to use) but I'll try to check it.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About