emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#18867: closed (sort utility bug reporting)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#18867: closed (sort utility bug reporting)
Date: Tue, 28 Oct 2014 12:35:04 +0000

Your message dated Tue, 28 Oct 2014 06:33:59 -0600
with message-id <address@hidden>
and subject line Re: bug#18867: sort utility bug reporting
has caused the debbugs.gnu.org bug report #18867,
regarding sort utility bug reporting
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
18867: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18867
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: sort utility bug reporting Date: Mon, 27 Oct 2014 21:47:12 +0000

address@hidden ~/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


--- End Message ---
--- Begin Message --- Subject: Re: bug#18867: sort utility bug reporting Date: Tue, 28 Oct 2014 06:33:59 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
tag 18867 notabug
thanks

On 10/27/2014 03:47 PM, Rameshreddy Mudhireddy wrote:
> address@hidden ~/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

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]