Bug 20975

Summary: sort problem
Product: [Retired] Red Hat Linux Reporter: Need Real Name <scomstoc>
Component: textutilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: scomstoc
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-11-16 20:01:05 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 Need Real Name 2000-11-16 19:27:30 UTC
When sorting the following text.....

4072.10 4072.9
4072.10000 .
4072.100 4072.99
4072.1 4072.1980
4072.1000 4072.3341


I get the following results:

Red Hat 7.0, textutils-2.0e-8
4072.10000 .
4072.1000 4072.3341
4072.100 4072.99
4072.10 4072.9
4072.1 4072.1980


Red Hat 6.2, textutils-1.22-7
4072.1 4072.1980
4072.10 4072.9
4072.100 4072.99
4072.1000 4072.3341
4072.10000 .

IBM AIX 4.3.3
4072.1 4072.1980
4072.10 4072.9
4072.100 4072.99
4072.1000 4072.3341
4072.10000 .

Comment 1 Need Real Name 2000-11-16 20:01:02 UTC
Ummm - I gave the wrong Red Hat version in my second example above.  It is Red
Hat 5.1, not 6.2.  The version of textutils is listed correctly.  Sorry for the
bother.   Sam.

Comment 2 Derek Tattersall 2000-11-16 20:20:56 UTC
LC_ALL=C sort <input file>  sorts your input properly.  Remember glibc is now
internationalized and sort does not assume any particular collating sequence
until it is told.