zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Marlon Richert <marlon.richert@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Not-quite-alphabetic sorting: bug in Zsh or in Ubuntu?
Date: Fri, 27 Aug 2021 15:33:18 -0700	[thread overview]
Message-ID: <CAH+w=7Yjwyux5-C1B040zTO38rur7z43nrb5=2-r-C-hB-d08g@mail.gmail.com> (raw)
In-Reply-To: <CAHLkEDuO+WV7wVT8rOcg3OoCQyWz_BewZXKV1vnuH7FGr6RCCQ@mail.gmail.com>

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.


  reply	other threads:[~2021-08-27 22:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 14:49 Marlon Richert
2021-08-27 22:33 ` Bart Schaefer [this message]
2021-08-30 10:50   ` Marlon Richert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7Yjwyux5-C1B040zTO38rur7z43nrb5=2-r-C-hB-d08g@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=marlon.richert@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).