Bug 8125 - sort util broken in RH 6.1
sort util broken in RH 6.1
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: textutils (Show other bugs)
6.1
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-01-02 22:54 EST by wiencko
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-05 13:05:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description wiencko 2000-01-02 22:54:09 EST
The sort utility is definitely broken, at least as it is implemented in
Redhat 6.1 .  Starting out with a new session after a complete Redhat 6.1
install (choosing "US" when asked for location), the install results in
LANG, LC_ALL, and LINGUAS each set to en_US , and sort doesn't work
properly.  If you unset both LANG and LC_ALL and then set them back to
en_US , then sort works properly.  It doesn't matter what order you do the
unsets and sets, as long as you do both.  Sessions #1 and #2 below show the
sequence; Session #1 unsets LANG first, Session #2 unsets LC_ALL first.

This behavior was described to Jim Meyering; he thinks the sort is OK but
he "suspect(s) that RH's locale data is buggy."

This problem occurs when using sort (GNU textutils) 2.0 , but not when
using sort (GNU textutils) 1.22 , even when both are used on the same
Redhat 6.1 install.

(There also is a bug with comm 2.0 but not in comm 1.22 ; perhaps
there are similar bug characteristics.  Further information on this problem
can be forthcoming once there appears to be agreement that there is a bug
in relation to using sort.)


----------------------------------------

SESSION # 1

$ set | egrep "^LANG|^LC|^LINGUAS"
LANG=en_US
LC_ALL=en_US
LINGUAS=en_US

$ cat x
acd
ari
a q

$ sort x
acd
a q
ari

$ unset LANG
$ sort x
acd
a q
ari

$ unset LC_ALL
$ sort x
a q
acd
ari

$ typeset LC_ALL=en_US
$ sort x
a q
acd
ari

$ typeset LANG=en_US
$ sort x
a q
acd
ari

$ set | egrep "^LANG|^LC|^LINGUAS"
LANG=en_US
LC_ALL=en_US
LINGUAS=en_US

-------------------------------------------

SESSION #2

$ set | egrep "^LANG|^LC|^LINGUAS"
LANG=en_US
LC_ALL=en_US
LINGUAS=en_US

$ cat x
acd
ari
a q

$ sort x
acd
a q
ari

$ unset LC_ALL
$ sort x
acd
a q
ari

$ unset LANG
$ sort x
a q
acd
ari

$ typeset LANG=en_US
$ sort x
a q
acd
ari

$ typeset LC_ALL=en_US
$ sort x
a q
acd
ari

$ set | egrep "^LANG|^LC|^LINGUAS"
LANG=en_US
LC_ALL=en_US
LINGUAS=en_US

$

---------------------------------------------

End of Sessions
End of Bug Description

=============================================
Comment 1 Bernhard Rosenkraenzer 2000-01-05 13:05:59 EST
I've reverted sort to the old behavior in Raw Hide; to get the locale-specific
one, use sort -l.

Note You need to log in before you can comment on or make changes to this bug.