Adieusatz !
> Kaixo!
>
>
> On Wed, May 17, 2000 at 01:45:12PM +0200, NEPOTE Charles
> (Neuilly Gestion) wrote:
>
> > With Mandrake 7.0 or a cooker installed in french.
> >
> > when I :
> >
> > "sort db.wordlist"
>
> > I obtain :
>
> > tue i:1
> > tu� i:1
> > tue i:2
> > tu� i:2
>
> > Shouldn't it be :
>
> > tue i:1
> > tue i:2
> > tu� i:1
> > tu� i:2
>
> No.
> The whole line is used for sorting; and "1" < "2". while "e"
> is equal to "�"
> ("�" becomes > "e" only when all other things are equal).
>
> To have the result you want you must tell to sort on only the
> first column:
>
> sort -k1 db.wordlist
>
> which gives:
>
> tue i:1
> tue i:2
> tu� i:1
> tu� i:2
sort -k1 db.wordlist
doesn't do it on my machine (same result as the first one).
I tried also :
sort -k 1 db.wordlist
sort -b -k1 ...
sort -b -k 1 ...
no more results...
> > Because an accent in french *make sense* : "tu�" is very
> different from
> > "tue".
>
> But, for sorting order, "�" is the same as "e", when major differences
> exist (whcih is the case here, "2" > "1").
> Coinsider "tu�a" and "tueb" (I know, those words dont exist,
> is just for
> example). you expect "tu�a" to be before "tueb" right ?
> It is the same thing here.
All right. Thanks to DindinX too.
> > This result make ht://Dig working bad with some documents...
>
> Because your logic is wrong. If you intend to sort on only
> the first field
> and not on the i:number thing; you must tell it; with the -k
> parameter to
> the command 'sort'.
>
> > I tried to put :
> > LC_ALL=en
>
> Won't change anything; 'en' locale uses the same LC_COLLATE data.
That's what Gilles Detilleux from the ht://Dig group told me to try.
I'm sending a copy to him.
> --
> Ki �a vos v�ye b�n,
> Pablo Saratxaga
>
> http://www.ping.be/~pin19314/ PGP Key available, key
> ID: 0x8F0E4975
On gran marci ! (en la lan-oua de Savou� (francoproven�al de Savoie)).
Charles N�pote.
