Bug 8813

Summary: sort output is incorrect
Product: [Retired] Red Hat Linux Reporter: John Benninghoff <jbenninghoff>
Component: textutilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-01-24 23:23:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Benninghoff 2000-01-24 23:20:56 UTC
Here is the test case in a unix shell transcript:

johnb@ilinux zsh: cat test.fqn
ads.gamespy.com
ads.enliven.com
adserver.akqa.net
ads.dogpile.com
ads.fool.com
johnb@ilinux zsh: sort test.fqn
ads.dogpile.com
ads.enliven.com
adserver.akqa.net
ads.fool.com
ads.gamespy.com
johnb@ilinux zsh: sort --version
sort (GNU textutils) 2.0
Written by Mike Haertel.

Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
johnb@ilinux zsh: type sort
sort is /bin/sort


It appears as though the -d option is enabled by default.  Just my
speculation though.  My results on Solaris 2.6 appeared correct.

Comment 1 Bernhard Rosenkraenzer 2000-01-24 23:23:59 UTC
This was related to the locale stuff, which turned out to be more
confusing than senseful.
It's now (Rawhide/6.2b*) disabled by default.

Comment 2 John Benninghoff 2000-01-24 23:50:59 UTC
So how do I disable -d in the interim?

Comment 3 sidlon 2000-03-11 19:12:59 UTC
For now, set the environmental variable LC_ALL to POSIX, and sort will work properly.