Bug 8813 - sort output is incorrect
Summary: sort output is incorrect
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: textutils
Version: 6.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-24 23:20 UTC by John Benninghoff
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-01-24 23:23:56 UTC
Embargoed:


Attachments (Terms of Use)

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.


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