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

Re: use locale

Thread Previous | Thread Next
From:
=?ISO-8859-1?Q?Zsb=E1n_Ambrus?=
Date:
March 12, 2011 14:09
Subject:
Re: use locale
Message ID:
AANLkTimV3iTCSDjd6es36AVha3NH+8Qd-aAX58PYMxM3@mail.gmail.com
On Sat, Mar 12, 2011 at 11:00 PM, Zsbán Ambrus <ambrus@math.bme.hu> wrote:
> On Sat, Mar 12, 2011 at 12:37 PM, demerphq <demerphq@gmail.com> 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.

Ambrus

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About