From ed9c47d90b74b02e40d45b65b84027b8f2eca9c9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 13 Aug 1999 22:39:09 +0000 Subject: Update. 1999-08-13 Ulrich Drepper * stdio-common/tstscanf.c: Add test for hexadecimal float parsing problem. --- ChangeLog | 5 +++++ configure | 4 ++-- stdio-common/tstscanf.c | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 23ac5dbed5..49fca77b92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-08-13 Ulrich Drepper + + * stdio-common/tstscanf.c: Add test for hexadecimal float parsing + problem. + 1999-08-13 Andreas Jaeger * configure.in: install-sh lives now in scripts subdir. diff --git a/configure b/configure index f59fa2262e..111ffe4138 100755 --- a/configure +++ b/configure @@ -1191,9 +1191,9 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -if test "$INSTALL" = "${srcdir}/install-sh -c"; then +if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then # The makefiles need to use a different form to find it in $srcdir. - INSTALL='\$(..)./install-sh -c' + INSTALL='\$(..)./scripts/install-sh -c' fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 echo "configure:1200: checking whether ln -s works" >&5 diff --git a/stdio-common/tstscanf.c b/stdio-common/tstscanf.c index 85ea70f135..4e56251e03 100644 --- a/stdio-common/tstscanf.c +++ b/stdio-common/tstscanf.c @@ -250,5 +250,20 @@ main (int argc, char **argv) } } + fputs ("Test 8:\n", stdout); + { + double d = 123456.789; + int res; + + res = sscanf ("0x1234", "%lf", &d); + printf ("res = %d, d = %f\n", res, d); + + if (res != 0 || d != 123456.789) + { + fputs ("test failed!\n", stdout); + result = 1; + } + } + exit (result); } -- cgit v1.2.3