Subject: Re: bin/36816: [dM] sort -n mis-sorts -ve numbers
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 08/22/2007 04:20:03
The following reply was made to PR bin/36816; it has been noted by GNATS.
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
To: Alan Barrett <apb@cequrux.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: bin/36816: [dM] sort -n mis-sorts -ve numbers
Date: Wed, 22 Aug 2007 00:10:16 -0400 (EDT)
>> sort(1) mis-sorts negative numbers under at least some
>> circumstances. I haven't explored the envelope of the bug
>> much.
> Have you tried the patch in PR 30504? This looks like one of the
> problems with trailing zeros that was supposed to have been fixed by
> that patch.
No, I didn't try it; since the test case given in 30504 didn't
(mis)behave as outlined in the PR, I guessed it wasn't very relevant.
The patch in 30504 (the second one) does make the symptom I saw go
away, though, so you are quite likely right that it is another
manifestation of the same bug. Thank you; I'll run with this patch
unless and until either I find something it breaks (that I consider
more important than this) or a new release comes out with an in-tree
fix.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B