GNU bug report logs - #19142
sort not working with LANG set to language_country.encoding

Previous Next

Package: coreutils;

Reported by: Roland Sieker <ospalh <at> gmail.com>

Date: Fri, 21 Nov 2014 16:49:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roland Sieker <ospalh <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: sort not working with LANG set to language_country.encoding
Date: Fri, 21 Nov 2014 12:24:56 +0100
[Message part 1 (text/plain, inline)]
Hi.

I have noticed that sort seems to have problems when the LANG environment
variable is set with language and country.

As a test case, i tried to sort

a
b
a
⺌
⺕
⺌

It sorts OK like this, with LANG just the language.encoding:
( setenv LANG en.UTF-8 ; echo 'a\nb\na\n⺌\n⺕\n⺌' | sort )
a
a
b
⺌
⺌
⺕

But not with LANG as language_country.encoding:
( setenv LANG en_GB.UTF-8 ; echo 'a\nb\na\n⺌\n⺕\n⺌' | sort )
⺌
⺕
⺌
a
a
b




sort: sort (GNU coreutils) 8.21
Shell: tcsh 6.18.01 (Astron) 2012-02-14 (x86_64-unknown-linux) options
wide,nls,dl,al,kan,rh,color,filec
Fedora Linux 20

Regards, ospalh
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 218 days ago.

Previous Next


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