coreutils
[Top][All Lists]
Advanced

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

Re: coreutils-8.12.178-df9cd on IRIX 6.5


From: Pádraig Brady
Subject: Re: coreutils-8.12.178-df9cd on IRIX 6.5
Date: Fri, 02 Sep 2011 00:41:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0

On 09/01/2011 10:38 PM, Bruno Haible wrote:
> FAIL: misc/shuf
> FAIL: misc/sort-month
> FAIL: misc/sort-rand
> FAIL: misc/sort-version

These are all due to numeric sorting being broken.
I had a quick look at strnumcmp-in.h::numcompare()
and a total guess is perhaps the irix compiler is
using traditional C semantics of
"unsigned preserving integer promotion" (unsigned short to unsigned int)
(ANSI C uses "value preserving integer promotion" (unsigned short to int)).
In that context this line might need some casts to int?

  tmp = tmpb - tmpa;

cheers,
Pádraig.



reply via email to

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