GNU bug report logs - #21844
`sort` behavior unstable based on neighboring elements ?

Previous Next

Package: coreutils;

Reported by: Mike Frysinger <vapier <at> gentoo.org>

Date: Fri, 6 Nov 2015 16:43:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Frysinger <vapier <at> gentoo.org>
To: 21844 <at> debbugs.gnu.org
Subject: bug#21844: `sort` behavior unstable based on neighboring elements ?
Date: Fri, 6 Nov 2015 11:41:41 -0500
[Message part 1 (text/plain, inline)]
i got this bug report today about sort mismatches.  the order of the
inputs changes the order of the outputs which surprised me.  but it
might be a nuance of unicode collation i'm not familiar with ?

$ printf '%s\n' aarch64 abc zed | LC_ALL=nb_NO.UTF-8 sort -u
aarch64
abc
zed
$ printf '%s\n' abc aarch64 zed | LC_ALL=nb_NO.UTF-8 sort -u
abc
zed
aarch64

why aren't the outputs here the same ?  a nordic user pointed out
that aa is an alternative for å which comes after z, which is fine,
but that doesn't explain why the output isn't the same here.
-mike
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 6 years and 273 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.