GNU bug report logs - #7000
sort GNU coreutils 6.9.92.4-f088d-dirty

Previous Next

Package: coreutils;

Reported by: Zoltán Krajcsovics <zulthank <at> gmail.com>

Date: Wed, 8 Sep 2010 15:43:02 UTC

Severity: normal

Tags: notabug

Done: Bob Proulx <bob <at> proulx.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 7000 in the body.
You can then email your comments to 7000 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 owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7000; Package coreutils. (Wed, 08 Sep 2010 15:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zoltán Krajcsovics <zulthank <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 08 Sep 2010 15:43:02 GMT) Full text and rfc822 format available.

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

From: Zoltán Krajcsovics <zulthank <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: sort GNU coreutils 6.9.92.4-f088d-dirty
Date: Wed, 8 Sep 2010 15:34:42 +0200
Dear Staff,

I had an input for sort, that was sorted wrong.

The input is:

D_1
D_3
D15

The output is:

D_1
D15
D_3


coreutils version (from man page):
GNU coreutils 6.9.92.4-f088d-dirty

System:
Linux 2.6.26-2-amd64 #1 SMP Thu Aug 19 00:37:36 UTC 2010 x86_64 GNU/Linux


I have also tried vi's sort, that sorted it like:
D15
D_1
D_3


Yours sincerely,

Zoltan Krajcsovics




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7000; Package coreutils. (Wed, 08 Sep 2010 16:19:01 GMT) Full text and rfc822 format available.

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

From: Eric Blake <eblake <at> redhat.com>
To: Zoltán Krajcsovics <zulthank <at> gmail.com>
Cc: 7000 <at> debbugs.gnu.org
Subject: Re: bug#7000: sort GNU coreutils 6.9.92.4-f088d-dirty
Date: Wed, 08 Sep 2010 10:20:44 -0600
On 09/08/2010 07:34 AM, Zoltán Krajcsovics wrote:
> Dear Staff,
>
> I had an input for sort, that was sorted wrong.
>
> The input is:
>
> D_1
> D_3
> D15
>
> The output is:
>
> D_1
> D15
> D_3

Not a bug in sort.  Your locale settings are at fault, per this FAQ:

http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7000; Package coreutils. (Wed, 08 Sep 2010 16:23:02 GMT) Full text and rfc822 format available.

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

From: Eric Blake <eblake <at> redhat.com>
To: Zoltán Krajcsovics <zulthank <at> gmail.com>
Cc: 7000 <at> debbugs.gnu.org
Subject: Re: bug#7000: sort GNU coreutils 6.9.92.4-f088d-dirty
Date: Wed, 08 Sep 2010 10:24:32 -0600
On 09/08/2010 07:34 AM, Zoltán Krajcsovics wrote:
> coreutils version (from man page):
> GNU coreutils 6.9.92.4-f088d-dirty

That seems like a weird version - normally, the only people that should 
be running a -dirty version are those actually developing from 
coreutils.git; but since we have long since moved past 6.9, I'm assuming 
you got your coreutils pre-built as part of a distro.  Rather than 
relying on a possibly broken man page, what does 'sort --version' state? 
 At any rate, you may want to report the broken man page to your 
distro, to get them to fix it to report a saner string.

Meanwhile, the latest stable coreutils is 8.5, which fixes several real 
bugs in sort; or, if you use the current coreutils.git sources, you can 
use the new 'sort --debug' option which would give you some verbose 
hints about how your locale is affecting things.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7000; Package coreutils. (Wed, 08 Sep 2010 16:59:01 GMT) Full text and rfc822 format available.

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

From: Sven Joachim <svenjoac <at> gmx.de>
To: Eric Blake <eblake <at> redhat.com>
Cc: 7000 <at> debbugs.gnu.org,
	Zoltán Krajcsovics <zulthank <at> gmail.com>
Subject: Re: bug#7000: sort GNU coreutils 6.9.92.4-f088d-dirty
Date: Wed, 08 Sep 2010 19:00:38 +0200
On 2010-09-08 18:24 +0200, Eric Blake wrote:

> On 09/08/2010 07:34 AM, Zoltán Krajcsovics wrote:
>> coreutils version (from man page):
>> GNU coreutils 6.9.92.4-f088d-dirty
>
> That seems like a weird version - normally, the only people that
> should be running a -dirty version are those actually developing from
> coreutils.git; but since we have long since moved past 6.9, I'm
> assuming you got your coreutils pre-built as part of a distro.  Rather
> than relying on a possibly broken man page, what does 'sort --version'
> state? At any rate, you may want to report the broken man page to your
> distro, to get them to fix it to report a saner string.

He's running coreutils 6.10, I reported the weird version in the
manpages back in January 2008¹.  Probably it's not important enough for
distros to fix this.

Sven


¹ http://lists.gnu.org/archive/html/bug-coreutils/2008-01/msg00219.html




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7000; Package coreutils. (Wed, 08 Sep 2010 18:52:02 GMT) Full text and rfc822 format available.

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

From: Zoltán Krajcsovics <zulthank <at> gmail.com>
To: Sven Joachim <svenjoac <at> gmx.de>
Cc: 7000 <at> debbugs.gnu.org, Eric Blake <eblake <at> redhat.com>
Subject: Re: bug#7000: sort GNU coreutils 6.9.92.4-f088d-dirty
Date: Wed, 8 Sep 2010 20:53:50 +0200
2010/9/8 Sven Joachim <svenjoac <at> gmx.de>:
> On 2010-09-08 18:24 +0200, Eric Blake wrote:
>
>> On 09/08/2010 07:34 AM, Zoltán Krajcsovics wrote:
>>> coreutils version (from man page):
>>> GNU coreutils 6.9.92.4-f088d-dirty
>>
>> That seems like a weird version - normally, the only people that
>> should be running a -dirty version are those actually developing from
>> coreutils.git; but since we have long since moved past 6.9, I'm
>> assuming you got your coreutils pre-built as part of a distro.  Rather
>> than relying on a possibly broken man page, what does 'sort --version'
>> state? At any rate, you may want to report the broken man page to your
>> distro, to get them to fix it to report a saner string.
>
> He's running coreutils 6.10, I reported the weird version in the
> manpages back in January 2008š.  Probably it's not important enough for
> distros to fix this.
>
> Sven
>
>
> š http://lists.gnu.org/archive/html/bug-coreutils/2008-01/msg00219.html
>

That is right.




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#7000; Package coreutils. (Wed, 08 Sep 2010 20:30:04 GMT) Full text and rfc822 format available.

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

From: Zoltán Krajcsovics <zulthank <at> gmail.com>
To: Eric Blake <eblake <at> redhat.com>
Cc: 7000 <at> debbugs.gnu.org
Subject: Re: bug#7000: sort GNU coreutils 6.9.92.4-f088d-dirty
Date: Wed, 8 Sep 2010 22:31:20 +0200
Eric Blake <eblake <at> redhat.com> írta (2010. szeptember 8. 18:20):
> On 09/08/2010 07:34 AM, Zoltán Krajcsovics wrote:
>>
>> Dear Staff,
>>
>> I had an input for sort, that was sorted wrong.
>>
>> The input is:
>>
>> D_1
>> D_3
>> D15
>>
>> The output is:
>>
>> D_1
>> D15
>> D_3
>
> Not a bug in sort.  Your locale settings are at fault, per this FAQ:
>
> http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021


With the supposed changes it works for me, too. I had `hu_HU' sorting rules.

Could be useful to anyone, who cannot change locales for some reason:
I could use a workaround changing space, '_', etc to letters, like 'a'.


Sorry for bothering with known problem, and thank You for the solution!

Zoltan Krajcsovics




Added tag(s) notabug. Request was from era eriksson <era <at> iki.fi> to control <at> debbugs.gnu.org. (Thu, 30 Aug 2012 08:27:02 GMT) Full text and rfc822 format available.

Reply sent to Bob Proulx <bob <at> proulx.com>:
You have taken responsibility. (Tue, 08 Apr 2014 17:33:01 GMT) Full text and rfc822 format available.

Notification sent to Zoltán Krajcsovics <zulthank <at> gmail.com>:
bug acknowledged by developer. (Tue, 08 Apr 2014 17:33:03 GMT) Full text and rfc822 format available.

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

From: Bob Proulx <bob <at> proulx.com>
To: Zoltán Krajcsovics <zulthank <at> gmail.com>
Cc: 7000-done <at> debbugs.gnu.org
Subject: Re: bug#7000: sort GNU coreutils 6.9.92.4-f088d-dirty
Date: Tue, 8 Apr 2014 11:32:55 -0600
Zoltán Krajcsovics wrote:
> Eric Blake írta (2010. szeptember 8. 18:20):
> > On 09/08/2010 07:34 AM, Zoltán Krajcsovics wrote:
> >> I had an input for sort, that was sorted wrong.
> >>
> >> The input is:
> >>
> >> D_1
> >> D_3
> >> D15
> >>
> >> The output is:
> >>
> >> D_1
> >> D15
> >> D_3
> >
> > Not a bug in sort.  Your locale settings are at fault, per this FAQ:
> >
> > http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021
> 
> 
> With the supposed changes it works for me, too. I had `hu_HU' sorting rules.
> 
> Could be useful to anyone, who cannot change locales for some reason:
> I could use a workaround changing space, '_', etc to letters, like 'a'.
> 
> Sorry for bothering with known problem, and thank You for the solution!

This never got closed in the bug tracker.  Happy to see it was
resolved.  Closing it now.

Bob




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

This bug report was last modified 11 years and 49 days ago.

Previous Next


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