--On Thursday, May 13, 2004 21:14:40 -0400 Tom Lane <[EMAIL PROTECTED]> wrote:
Larry Rosenman <[EMAIL PROTECTED]> writes:Does Unixware support NaN/Infinity at all?
Yes, we support NaN's and Inf.
Hmph. Apparently their strtod() has thought of some original new way to misbehave on those inputs. Would you mind tracing through float4in() or float8in() to see exactly how it manages to fail?
regards, tom lane
I ran a quick C test:
cc -O -o test3 test3.c $ ./test3 num=nan errno=0 $ cat test3.c #include <stdlib.h> #include <stdio.h> #include <errno.h> int main(int argc,char **argv) { double num; char *input="NaN"; char **ptr;
num=strtod(input,ptr); printf("num=%g\n",num); printf("errno=%ld\n",errno); exit(0); }
So, how's the easiest way to trace PG's float4in stuff?
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED] US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
pgp00000.pgp
Description: PGP signature