GNU bug report logs -
#7525
bug in sort command
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7525 in the body.
You can then email your comments to 7525 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7525
; Package
coreutils
.
(Wed, 01 Dec 2010 13:41:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Kielbasiewicz, Peter" <peter.kielbasiewicz <at> philips.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 01 Dec 2010 13:41:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
there seems to be a bug in Ubuntu's 10.10 sort command.
I suspect that it defaults to the -f option now which I think is wrong.
e.g.
{ echo a
echo j
echo A
echo i
echo AA
echo B
} | sort
produces
a
A
AA
B
i
j
instead of
A
AA
B
a
i
j
--
With kind regards,
Peter
________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
[Message part 2 (text/html, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7525
; Package
coreutils
.
(Wed, 01 Dec 2010 15:10:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7525 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 12/01/2010 06:44 AM, Kielbasiewicz, Peter wrote:
> Hello,
> there seems to be a bug in Ubuntu's 10.10 sort command.
> I suspect that it defaults to the -f option now which I think is wrong.
Thanks for the report. However, this is not a bug in sort, but a
problem of your current choice of locale. It is also a FAQ:
http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021
> e.g.
> { echo a
> echo j
> echo A
> echo i
> echo AA
> echo B
> } | sort
Running with the recently introduced 'sort --debug' option sheds some
light on your situation:
$ printf 'a\nj\nA\ni\nAA\nB\n' | src/sort --debug
src/sort: using `en_US.UTF-8' sorting rules
a
_
A
_
AA
__
B
_
i
_
j
_
eblake <at> office (0 0) ~/coreutils
$ printf 'a\nj\nA\ni\nAA\nB\n' | LC_ALL=C src/sort --debug
src/sort: using simple byte comparison
A
_
AA
__
B
_
a
_
i
_
j
_
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Wed, 01 Dec 2010 16:49:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Kielbasiewicz, Peter" <peter.kielbasiewicz <at> philips.com>
:
bug acknowledged by developer.
(Wed, 01 Dec 2010 16:49:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 7525-done <at> debbugs.gnu.org (full text, mbox):
"sort --help" says:
*** WARNING ***
The locale specified by the environment affects sort order.
Set LC_ALL=C to get the traditional sort order that uses
native byte values.
and this most likely explains your situation.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 30 Dec 2010 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.