[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #27373] sort -h performs incorrectly if in utf8 locale.
From: |
anonymous |
Subject: |
[bug #27373] sort -h performs incorrectly if in utf8 locale. |
Date: |
Wed, 02 Sep 2009 19:12:08 +0000 |
User-agent: |
Opera/9.80 (X11; Linux x86_64; U; en-GB) Presto/2.2.15 Version/10.00 |
URL:
<http://savannah.gnu.org/bugs/?27373>
Summary: sort -h performs incorrectly if in utf8 locale.
Project: GNU Core Utilities
Submitted by: None
Submitted on: Wed 02 Sep 2009 19:12:06 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Sample shell session:
% echo $LC_ALL
% echo $LC_COLLATE
C
% echo $LANG
en_GB.utf8
% printf "1Mi\n1M" | sort -h
1M
1Mi
% export LANG=en_GB
% printf "1Mi\n1M" | sort -h
sort: both SI and IEC prefixes present on units
The relevant lines in my locale.gen are:
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
However, this appears to occurs for any utf8 locale. Coreutils 7.5. Other
tests fail in a similar manner, eg:
% export LANG=en_GB.utf8
% printf "K\nE\nM\nZ\n" | ./sort -h
E
K
M
Z
% export LANG="en_GB"
% printf "K\nE\nM\nZ\n" | ./sort -h
K
M
E
Z
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27373>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #27373] sort -h performs incorrectly if in utf8 locale.,
anonymous <=