Re: [HACKERS] ECPG/OpenBSD buildfarm failures, take I

2006-09-07 Thread Stefan Kaltenbrunner
Tom Lane wrote: > Michael Fuhr <[EMAIL PROTECTED]> writes: >> In Plauger's _The Standard C Library_ (1992) on p 335 is an excerpt >> from the standard (I think). At the end of a section entitled >> "7.10.1.4 The strtod function" is the following: "If the correct >> value would cause underflow, ze

Re: [HACKERS] ECPG/OpenBSD buildfarm failures, take I

2006-09-06 Thread Tom Lane
Michael Fuhr <[EMAIL PROTECTED]> writes: > In Plauger's _The Standard C Library_ (1992) on p 335 is an excerpt > from the standard (I think). At the end of a section entitled > "7.10.1.4 The strtod function" is the following: "If the correct > value would cause underflow, zero is returned and the

Re: [HACKERS] ECPG/OpenBSD buildfarm failures, take I

2006-09-06 Thread Michael Fuhr
On Wed, Sep 06, 2006 at 11:20:12PM +0200, Martijn van Oosterhout wrote: > Odd, according to these references: > > http://www.csse.uwa.edu.au/programming/ansic-library.html#stdlib > http://cplus.kompf.de/cliblist.html > http://docs.hp.com/en/B9106-90010/strtod.3C.html > > returning ERANGE on under

Re: [HACKERS] ECPG/OpenBSD buildfarm failures, take I

2006-09-06 Thread Martijn van Oosterhout
On Wed, Sep 06, 2006 at 09:13:34PM +0200, Stefan Kaltenbrunner wrote: > that hints that setting ERANGE on an underflow (vs an overflow) is > implementation specific though I ws unable to verify that this is indeed > the case ... Odd, according to these references: http://www.csse.uwa.edu.au/progr

Re: [HACKERS] ECPG/OpenBSD buildfarm failures, take I

2006-09-06 Thread Stefan Kaltenbrunner
Michael Meskes wrote: > It seems ECPG regression tests trigger a bug in OpenBSD libc. Please try > the attached test case. I should give ERANGE as error, but on OpenBSD > errno is set to 0. > > I tried this test case on Linux, where it works, and OpenBSD 3.8 and 4.0 > (that is HEAD). On both these

Re: [HACKERS] ECPG/OpenBSD buildfarm failures, take I

2006-09-06 Thread Stefan Kaltenbrunner
Michael Meskes wrote: > It seems ECPG regression tests trigger a bug in OpenBSD libc. Please try > the attached test case. I should give ERANGE as error, but on OpenBSD > errno is set to 0. > > I tried this test case on Linux, where it works, and OpenBSD 3.8 and 4.0 > (that is HEAD). On both these

[HACKERS] ECPG/OpenBSD buildfarm failures, take I

2006-09-06 Thread Michael Meskes
It seems ECPG regression tests trigger a bug in OpenBSD libc. Please try the attached test case. I should give ERANGE as error, but on OpenBSD errno is set to 0. I tried this test case on Linux, where it works, and OpenBSD 3.8 and 4.0 (that is HEAD). On both these systems it doesn't. Now the quest