Mail Archives: djgpp-workers/2003/05/04/13:49:59
Hello.
Eli Zaretskii wrote:
[snip]
> IIRC, "they" are the Cygnus test suite. Some of the gcvt tests there
> failed until I added this snippet.
OK.
> Does any standard say that we _must_ produce the leading zero? If
> not, I'd argue that Perl is being gratuitously restrictive.
No, I don't think the leading zero is required. The standard says:
* you should use sprintf with %g, if you want portable code;
* the output is similar to printf's %g format.
"Similar" is the key word there.
Perl uses sprintf with %g for DJGPP, because its Configure script thinks that
gcvt doesn't work. This is fine - there's no problem.
> We could fix the Cygnus test suite, of course, if that would be a
> lesser evil. But I'd doubt that suite wants this behavior for
> arbitrary reasons; probably at least newlib behaves like that.
I don't think we need to make any changes.
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -