GNU bug report logs - #18867
sort utility bug reporting

Previous Next

Package: coreutils;

Reported by: Rameshreddy Mudhireddy <rameshreddy.mudhireddy <at> ericsson.com>

Date: Tue, 28 Oct 2014 07:15:09 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18867 in the body.
You can then email your comments to 18867 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#18867; Package coreutils. (Tue, 28 Oct 2014 07:15:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Rameshreddy Mudhireddy <rameshreddy.mudhireddy <at> ericsson.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 28 Oct 2014 07:15:09 GMT) Full text and rfc822 format available.

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

From: Rameshreddy Mudhireddy <rameshreddy.mudhireddy <at> ericsson.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: sort utility bug reporting
Date: Mon, 27 Oct 2014 21:47:12 +0000
[Message part 1 (text/plain, inline)]
[erammud <at> eussjlxxen210 ~/programs/python/rewrite_tree]:sort --version
sort (GNU coreutils) 6.12
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and Paul Eggert.



cat 3.log
l.c
lD.h
l.h
sort 3.log
l.c
lD.h
l.h

Expected output is
l.c
l.h
lD.h


Regards
Ramesh
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 28 Oct 2014 12:35:02 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Tue, 28 Oct 2014 12:35:03 GMT) Full text and rfc822 format available.

Notification sent to Rameshreddy Mudhireddy <rameshreddy.mudhireddy <at> ericsson.com>:
bug acknowledged by developer. (Tue, 28 Oct 2014 12:35:05 GMT) Full text and rfc822 format available.

Message #12 received at 18867-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Rameshreddy Mudhireddy <rameshreddy.mudhireddy <at> ericsson.com>,
 18867-done <at> debbugs.gnu.org
Subject: Re: bug#18867: sort utility bug reporting
Date: Tue, 28 Oct 2014 06:33:59 -0600
[Message part 1 (text/plain, inline)]
tag 18867 notabug
thanks

On 10/27/2014 03:47 PM, Rameshreddy Mudhireddy wrote:
> [erammud <at> eussjlxxen210 ~/programs/python/rewrite_tree]:sort --version
> sort (GNU coreutils) 6.12

You may want to upgrade; the latest version is 8.23, and there HAVE been
sort bug fixes in the meantime.  However, for your particular issue,
what you have found is not a bug in sort but in your usage.

> sort 3.log
> l.c
> lD.h
> l.h

Newer builds of sort include a --debug flag that show you what is going on:

$ printf 'l.c\nlD.h\nl.h\n' | sort --debug
sort: using ‘en_US.UTF-8’ sorting rules
l.c
___
lD.h
____
l.h
___

$ printf 'l.c\nlD.h\nl.h\n' | LC_ALL=C sort --debug
sort: using simple byte comparison
l.c
___
l.h
___
lD.h
____


You have encountered a FAQ:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021

Your current locale has chosen a collation sequence that is case
insensitive and ignores punctuation, so sort IS sorting correctly.  Set
LC_ALL in the environment of sort to a different locale if you want
bytewise sorting.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 26 Nov 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 264 days ago.

Previous Next


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