Re: sort -V and accents

2012-08-01 Thread Pierre-Jean
Eric Blake 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: > 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 coul

Re: sort -V and accents

2012-08-01 Thread Jim Meyering
Pierre-Jean wrote: > Jim Meyering 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 yo

Re: sort -V and accents

2012-08-01 Thread Eric Blake
On 08/01/2012 04:48 AM, Pierre-Jean wrote: > Jim Meyering 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 seco

Re: sort -V and accents

2012-08-01 Thread Pierre-Jean
Jim Meyering 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: > > echo "

Re: sort -V and accents

2012-07-31 Thread Jim Meyering
Pierre-Jean wrote: > I'm trying to sort a file containing accents and numbers, > but can't find a way to do this correctly: > > - Without -V option, accents are correctly sorted, but not > numbers. > - With -V option, numbers are correctly sorted, but not > accents. > > Here is an example: > >

sort -V and accents

2012-07-31 Thread Pierre-Jean
Hello alls, I'm trying to sort a file containing accents and numbers, but can't find a way to do this correctly: - Without -V option, accents are correctly sorted, but not numbers. - With -V option, numbers are correctly sorted, but not accents. Here is an example: echo " A 10 A 9 E 10 E 9