GNU bug report logs - #6790
locale sort ordering confusion

Previous Next

Package: coreutils;

Reported by: "George Thomas Irimben (georgeti)" <georgeti <at> cisco.com>

Date: Tue, 3 Aug 2010 20:19:01 UTC

Severity: normal

Tags: moreinfo, notabug

Merged with 6791

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "George Thomas Irimben (georgeti)" <georgeti <at> cisco.com>
To: <bug-coreutils <at> gnu.org>
Subject: Problem(bug?) with basic sort command in Linux
Date: Wed, 4 Aug 2010 01:32:55 +0530
Hi,
I would like to report a problem(bug?) I am facing with sort command in
Linux.

Sorting of a simple text file using simple sort command is giving me
incorrect result.

Here is the problem:

Text file to sort has 3 lines
my-lnx7% cat y
abc/d,ABC
abc/,XYZ
abc/o,MNO

sort command from Linux is giving me below result(According to me, this
result is incorrect)

my-lnx7% sort y
abc/d,ABC
abc/o,MNO
abc/,XYZ

But, result expected is as below. Because "," is ahead of "d" in ASCII
table. 
Same found working on Unix using same input file, same command line.

abc/,XYZ
abc/d,ABC
abc/o,MNO


Pls let me know if this is a problem in Linux or I am missing something.


Thanks, George




This bug report was last modified 15 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.