[m-rev.] diff: disable string_format_o on taifun

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Nov 22 06:09:14 AEDT 2002


On 22-Nov-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> Hmm.  At any rate your patch isn't complete -- we're also running tests
> on mundroo, which is another Solaris system that has the same problem.

This test also fails on MacOS X 10.1.

I had a more detailed look at the C standards.  C99 specifies that the
output should be "0", but C89 was not so clear.  I still think "0" is
the right answer for C89, but the standard is not entirely conclusive on
this issue.  Maybe my initial diagnosis that outputting "" was a bug was
a bit too quick.  Even if that behaviour is a mistake, if two different
C implementations have made the same mistake, then it is an area of C89
that we should not rely on.  In which case adding another .exp would be
the right solution.

I've asked about it on comp.std.c.  Let's wait a few days and see what
response we get there.

On a related note, the tests/general/string_to_float test also fails on
MacOS X: it doesn't output a minus sign for -0.0.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list