bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort does not sort properly with glibc-2.5


From: Jim Meyering
Subject: Re: sort does not sort properly with glibc-2.5
Date: Tue, 19 Dec 2006 09:31:38 +0100

Mike Frysinger <address@hidden> wrote:
> On Tuesday 19 December 2006 03:05, Jim Meyering wrote:
>> Since you don't mention locale, nor show it in the
>> sole sort command you used, I have to ask:
>
> sorry, you are correct ... the C locale gives proper output, but en_US does
> not and my glibc-2.5 systems just happen to be either en_US or en_US.utf8 in
> LANG
>
> so what part am i missing wrt to collation in the en_US locale ?  i am an
> english speaking person in the US and i wouldnt say that sort order is
> correct, but my profession isnt exactly librarian ;)

Just realize that with e.g., en_US, many non-alphanumeric characters
(like "/" and " " in your data) are simply ignored by the comparison function.

http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021




reply via email to

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