coreutils
[Top][All Lists]
Advanced

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

Re: sort -V and accents


From: Eric Blake
Subject: Re: sort -V and accents
Date: Wed, 01 Aug 2012 06:08:10 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

On 08/01/2012 04:48 AM, Pierre-Jean wrote:
> Jim Meyering <address@hidden> wrote:
> 
>> Pierre-Jean wrote:
> 
>>> I'm trying to sort a file containing accents and numbers,
>>> but can't find a way to do this correctly:
> 
> 
>> The trick is to specify sorting with "-f" for the first column
>> and "-V" for the second.  Then it does what you seem to want:
> 
> This is better, but still not perfect: "é 9" should be
> before "e 10", like "E 9" is before "e 10", as in a
> dictionnary, where "éa" is before "eb". That means that
> e=E=é=è=É=È if something after makes a différence.

Are you using 'sort --debug' while experimenting with this?  Also be
open to the idea that it might be a bug in your locale definition, where
the rules picked by your choice of LC_COLLATE could be tuned to better
give you the sorting you want.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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