Your message dated Thu, 21 Dec 2017 17:15:00 -0500
with message-id <a3bc0d54-e69b-11e7-9b6a-00163eeb5...@msgid.mathom.us>
and subject line Re: Bug#884943: Sort should support an option --machine-sort 
or --byte-sort
has caused the Debian Bug report #884943,
regarding Weird result of `sort` if not LC_LOCALE=C is used – concerning e.g. 
the letter '-'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
884943: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884943
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: coreutils
Version: 8.25-2ubuntu3~16.0 (from xenial-updates)


If not `LC_ALL=C` is set, the sort result is weird.

Please inspect this sample code:
cat <<EOF | sort --unique --debug
a-ab
aac
a-ac
EOF


Running it with `LC_ALL=C` everything is fine:
> sort: using simple byte comparison
> a-ab
> ____
> a-ac
> ____
> aac
> ___
> 


But switching to en_US.UTF-8 or de_DE.UTF-8 I got the broken result:
> sort: using 
> a-ab
> ____
> aac
> ___
> a-ac
> ____
> 

So any algorithm or script which depends on a stable sorted order will
fail.

As a mitigation I tried `LC_COLLATE=C`  but still the ‘en_US.UTF-8’
sorting rules will be used :-/

--- End Message ---
--- Begin Message ---
On Thu, Dec 21, 2017 at 10:48:00PM +0100, H.-Dirk Schmitt wrote:
Reason for the lost time and this bug report is the bad/missing
documentation. → That is a real bug!

At the bottom of the man page is a note saying that the full documentation is in the info page, and helpfully even provides an http link to same (since so many people don't want to read the info page). Guess what you'll find at http://www.gnu.org/software/coreutils/sort

If you have a suggestion for a different wording please provide it. You might also take a look at https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021
--- End Message ---

Reply via email to