bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Case insensitivity seems to ignore lower bound of interval


From: John Cowan
Subject: Re: Case insensitivity seems to ignore lower bound of interval
Date: Thu, 28 Apr 2011 01:59:02 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

Eric Bischoff scripsit:

> My understanding of the word "collation" is :
>    "A", "a",  and "à" are "equivalent"with respect to alphabetical order
> It is not :
>    "A", "a" and "à" are "next to each other" in alphabetical order.

Proper collation algorithms do work this way: differences in letters
are most important, but if they are equal, accents are looked at, and
if *they* are equal, case is looked at.  But that's not the way
strcmp() works in C, unfortunately; the best approximation available
to case-blindness is to sort b either before or after B.

-- 
Using RELAX NG compact syntax to        John Cowan <address@hidden>
develop schemas is one of the simple    http://www.ccil.org/~cowan
pleasures in life....
        --Jeni Tennison                 <address@hidden>



reply via email to

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