bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locale specific ordering in EN_US -- why is a<A<b<B<y<Y<z<Z?


From: Paolo Bonzini
Subject: Re: locale specific ordering in EN_US -- why is a<A<b<B<y<Y<z<Z?
Date: Tue, 02 Jul 2013 09:15:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

Il 01/07/2013 20:36, Aharon Robbins ha scritto:
> [ I know I'm going to regret this... ]
> 
>> `[a-z]' is case insensitive
>>
>>   You are encountering problems with locales.  POSIX mandates that `[a-z]'
>>   uses the current locale's collation order -- in C parlance, that means
>>   strcoll(3) instead of strcmp(3).
> 
> As of the 2008 standard, this is no longer true. Ranges are now
> implementation defined. This is what gives us the leeway to move to
> range interpretation not based on locales.

You're right.  The documentation text is outdated.  Thanks for pointing
it out!

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]