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

Paolo Bonzini <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs,gmane.comp.shells.bash.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.