Allow for a longer printed representation of NaN.
[gnulib.git] / ChangeLog
index 6f723bc..c3ed27e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,108 @@
+2007-05-24  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
+       in the printed representation of a NaN.
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Likewise.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+       Reported by Eric Blake.
+
+2007-05-23  Eric Blake  <ebb9@byu.net>
+
+       Fix fseeko/ftello on cygwin 1.5.24.
+       * doc/functions/fseeko.texi (fseeko): Document the fix.
+       * doc/functions/ftello.texi (ftello): Document the fix.
+       * doc/functions/stdin.texi (stdin): Document the cygwin bug.
+       * doc/functions/stdout.text (stdout): New file.
+       * doc/functions/stderr.text (stderr): New file.
+       * doc/gnulib.texi (Function Substitutes): Use new files.
+       * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
+       prior to 1.7.0.
+       * tests/test-ftello.c (main): Likewise for ftello.
+       * tests/test-fseeko.sh: New file.
+       * tests/test-ftello.sh: New file.
+       * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
+       with seekable stdin.
+       * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
+       (gl_REPLACE_FSEEKO): New macro.
+       * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
+       * modules/fseeko (Files): Distribute fseeko.c.
+       * modules/ftello (Files): Distribute ftello.c.
+       * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
+       mode.
+       * lib/ftello.c (rpl_ftello): New file.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
+       fseeko, ftello.
+       (gl_STDIN_LARGE_OFFSET): New macro.
+       * modules/stdio (Makefile.am): Perform the replacement.
+       * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
+
+2007-05-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
+       GNULIB_POSIXCHECK is defined.
+
+2007-05-21  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
+       Check also the output for NaN arguments. When cross-compiling, guess
+       no on IRIX.
+       * lib/vasnprintf.c: Update comments.
+       * tests/test-vasnprintf-posix.c (strisnan): New function.
+       (test_function): Use it.
+       * tests/test-vasprintf-posix.c (strisnan): New function.
+       (test_function): Use it.
+       * tests/test-snprintf-posix.h (strisnan): New function.
+       (test_function): Use it.
+       * tests/test-sprintf-posix.h (strisnan): New function.
+       (test_function): Use it.
+       Reported by Eric Blake.
+
+2007-05-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
+       numbers that fails on BeOS.
+       * doc/functions/frexpl.texi: Update.
+
+2007-05-20  Jim Meyering  <jim@meyering.net>
+
+       * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
+       forced upon us by glibc-2.6.
+
+2007-05-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
+       * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
+       (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
+       * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
+       NEED_PRINTF_INFINITE.
+       (is_infinitel): New function.
+       (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
+       gl_PREREQ_VASNPRINTF_INFINITE.
+       (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+       gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
+       gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
+       gl_PREREQ_VASNPRINTF_INFINITE.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
 2007-05-20  Bruno Haible  <bruno@clisp.org>
 
        * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl