[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort-lines including non ASCII
From: |
Eli Zaretskii |
Subject: |
Re: sort-lines including non ASCII |
Date: |
Wed, 06 Jul 2016 17:34:40 +0300 |
> From: Uwe Brauer <address@hidden>
> Date: Tue, 05 Jul 2016 20:58:46 +0000
>
> Using sort-lines *does* not result in
>
> Álvarez
> Anton
> Arrieta
>
> But in
>
> Anton
> Arrieta
> Álvarez
>
> Which is contra intuitive.
Because you are thinking Spanish, I presume. Emacs by default is not
sensitive to the current locale or language, when it compares strings,
and instead does that in binary order of the characters' Unicode
codepoints. The advantage is that the order comes out the same in any
locale.
Óscar suggested string-collate-lessp, which is indeed what you want,
but please bear in mind that the resulting program will behave
differently in different locales. Even if you specify the locale to
sort explicitly, the program might be in trouble on someone else's
machine if that locale is not installed or not available.
- sort-lines including non ASCII, Uwe Brauer, 2016/07/05
- Re: sort-lines including non ASCII, Óscar Fuentes, 2016/07/05
- Re: sort-lines including non ASCII,
Eli Zaretskii <=
- Re: sort-lines including non ASCII, Michael Heerdegen, 2016/07/06
- Re: sort-lines including non ASCII, Uwe Brauer, 2016/07/07
- Re: sort-lines including non ASCII, Eli Zaretskii, 2016/07/07
- Re: sort-lines including non ASCII, Michael Heerdegen, 2016/07/07
- Re: sort-lines including non ASCII, Eli Zaretskii, 2016/07/07
- Re: sort-lines including non ASCII, Michael Heerdegen, 2016/07/07
- Re: sort-lines including non ASCII, Eli Zaretskii, 2016/07/07
- Re: sort-lines including non ASCII, Michael Heerdegen, 2016/07/07
- Re: sort-lines including non ASCII, Eli Zaretskii, 2016/07/08
- Re: sort-lines including non ASCII, Michael Heerdegen, 2016/07/14