Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Not-quite-alphabetic sorting: bug in Zsh or in Ubuntu?
- X-seq: zsh-workers 49329
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Not-quite-alphabetic sorting: bug in Zsh or in Ubuntu?
- Date: Mon, 30 Aug 2021 13:50:43 +0300
- Archived-at: <https://zsh.org/workers/49329>
- In-reply-to: <CAH+w=7Yjwyux5-C1B040zTO38rur7z43nrb5=2-r-C-hB-d08g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDuO+WV7wVT8rOcg3OoCQyWz_BewZXKV1vnuH7FGr6RCCQ@mail.gmail.com> <CAH+w=7Yjwyux5-C1B040zTO38rur7z43nrb5=2-r-C-hB-d08g@mail.gmail.com>
On Sat, Aug 28, 2021 at 1:33 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> I believe this has been discussed before, it has to do with how each
> platform defines locale-specific collation order. In the completion
> example I believe this has to do with collation of spaces, because the
> descriptions are included in the strings passed to strcoll() for
> sorting.
>
> Try
>
> LANG=en_US.UTF-8 sort <<\EOF
> less -- opposite of more
> lessecho -- expand metacharacters
> lessfile -- "input preprocessor" for less.
> lesskey -- specify key bindings for less
> lesspipe -- "input preprocessor" for less.
> EOF
>
> and you'll get the same result.
Thanks for the explanation! :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author