[Bug 75705] Re: sort order incorrect
tneems
tneems at gmail.com
Fri Nov 20 12:58:05 UTC 2015
I recently ran across this on 12.04 and 14.04 and managed to reproduce
it with only ascii characters
Input
echo "Z
X
Signal
Sign
Sign Problem
Signal Problem
Cc a
Cc
B
A" | sort
Output
A
B
Cc
Cc a
Sign
Signal
Signal Problem
Sign Problem
X
Z
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/75705
Title:
sort order incorrect
Status in glibc package in Ubuntu:
Confirmed
Bug description:
Binary package hint: coreutils
sort is not behaving as expected under ga_IE.utf8
To reproduce: create a UTF-8 file "test" with "a" on one line, and "á"
on another. Then run:
$ LC_ALL=ga_IE.utf8 sort test
a
á
This is correct - the accented character collates after the unaccented
one.
But now change the two lines to "aá" and "áa":
$ LC_ALL=ga_IE.utf8 sort test
áa
aá
Now the accented character collates first. The second command gives the correct order ("aá" followed by "áa")
on all other distros I've used (Gentoo for example).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/75705/+subscriptions
More information about the foundations-bugs
mailing list