+2007-11-07 Bruno Haible <bruno@clisp.org>
+
+ Update to GNU gettext 0.17.
+ * m4/intl.m4: Update to GNU gettext 0.17.
+ * m4/po.m4: Likewise.
+ * modules/gettext (Files): Remove m4/ulonglong.m4.
+ (configure.ac): Require gettext infrastructure from version 0.17.
+
+2007-11-06 Bruno Haible <bruno@clisp.org>
+
+ * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
+ symbolic values are not defined in a public header.
+ * lib/freadable.c (freadable) [QNX]: Likewise.
+ * lib/freadahead.c (freadahead) [QNX]: Likewise.
+ * lib/freading.c (freading) [QNX]: Likewise.
+ * lib/fseterr.c (fseterr) [QNX]: Likewise.
+ * lib/fwritable.c (fwritable) [QNX]: Likewise.
+ * lib/fwriting.c (fwriting) [QNX]: Likewise.
+ * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
+ Reported by Alain Magloire.
+
+ * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
+
+2007-11-05 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
+ code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
+ Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
+ Reported by Eric Blake.
+
+2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
+ * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
+ * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
+ (malloc): Undefine also before including <stdlib.h>.
+ (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
+ Needed on OSF/1 4.0.
+
+2007-11-05 Jim Meyering <meyering@redhat.com>
+
+ git-version-gen: sync from coreutils.
+ * build-aux/git-version-gen: Add comments.
+ Change the first '-' to '.' in the snapshot version string,
+ e.g., 6.9-377-08144 -> 6.9.377-08144
+ Remove first parameter.
+ Don't declare a version "-dirty" merely because a time
+ stamp has changed.
+
+2007-11-04 Bruno Haible <bruno@clisp.org>
+
+ * lib/lock.h: Protect all macro definitions containing an 'if'
+ statement through a "do { ... } while (0)".
+ * lib/tls.h: Likewise.
+
+2007-11-04 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
+
+2007-11-04 Bruno Haible <bruno@clisp.org>
+
+ * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
+ * modules/fprintf-posix (Depends-on): Add nocrash.
+ * modules/snprintf-posix (Depends-on): Likewise.
+ * modules/sprintf-posix (Depends-on): Likewise.
+ * modules/vasnprintf-posix (Depends-on): Likewise.
+ * modules/vasprintf-posix (Depends-on): Likewise.
+ * modules/vfprintf-posix (Depends-on): Likewise.
+ * modules/vsnprintf-posix (Depends-on): Likewise.
+ * modules/vsprintf-posix (Depends-on): Likewise.
+ * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
+
+2007-11-04 Bruno Haible <bruno@clisp.org>
+
+ * modules/nocrash: New file.
+ * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
+ GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
+
+2007-11-04 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-vasnprintf-posix.c (test_function): Add some tests of
+ precision handling.
+ * tests/test-vasprintf-posix.c (test_function): Likewise.
+ * tests/test-snprintf-posix.h (test_function): Likewise.
+ * tests/test-sprintf-posix.h (test_function): Likewise.
+
+ Fix *printf behaviour for large precisions on mingw and BeOS.
+ * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
+ * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
+ * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
+ (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
+ * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+ gl_PRINTF_PRECISION and test its result. Invoke
+ gl_PREREQ_VASNPRINTF_PRECISION.
+ * 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-11-04 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
+
+2007-11-04 Bruno Haible <bruno@clisp.org>
+
+ * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
+ Reported by Sylvain Beucler <beuc@gnu.org>.
+
+2007-11-03 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-fprintf-posix2.sh: New file.
+ * tests/test-fprintf-posix2.c: New file.
+ * modules/fprintf-posix-tests (Files): Add them.
+ (TESTS): Add test-fprintf-posix2.sh.
+ (configure.ac): Check for getrlimit and setrlimit.
+ (check_PROGRAMS): Add test-fprintf-posix2.
+
+ * tests/test-printf-posix2.sh: New file.
+ * tests/test-printf-posix2.c: New file.
+ * modules/printf-posix-tests (Files): Add them.
+ (TESTS): Add test-printf-posix2.sh.
+ (configure.ac): Check for getrlimit and setrlimit.
+ (check_PROGRAMS): Add test-printf-posix2.
+
+ Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
+ * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
+ * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
+ (decode_double): New function, copied from decode_long_double.
+ (scale10_round_decimal_decoded): New function, extracted from
+ scale10_round_decimal_long_double.
+ (scale10_round_decimal_long_double): Use it.
+ (scale10_round_decimal_double): New function.
+ (floorlog10): New function.
+ (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
+ * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
+ (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
+ * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+ gl_PRINTF_ENOMEM and test its result. Invoke
+ gl_PREREQ_VASNPRINTF_ENOMEM.
+ * 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.
+ * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
+ * modules/snprintf-posix (Depends-on): Likewise.
+ * modules/sprintf-posix (Depends-on): Likewise.
+ * modules/vasnprintf-posix (Depends-on): Likewise.
+ * modules/vasprintf-posix (Depends-on): Likewise.
+ * modules/vfprintf-posix (Depends-on): Likewise.
+ * modules/vsnprintf-posix (Depends-on): Likewise.
+ * modules/vsprintf-posix (Depends-on): 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-11-03 Bruno Haible <bruno@clisp.org>
+
+ * modules/frexp-nolibm-tests: New file.
+
+ * modules/frexp-nolibm: New file.
+ * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
+
+2007-11-03 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
+ value is C99 compliant.
+ Needed for OSF/1 5.1.
+
+2007-11-03 Bruno Haible <bruno@clisp.org>
+
+ Fix out-of-memory handling of vasnprintf.
+ * lib/printf-parse.c: Include <errno.h>.
+ (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
+ * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
+ is already set.
+
+2007-11-02 Eric Blake <ebb9@byu.net>
+
+ Fix tests on cygwin.
+ * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
+
+2007-11-01 Bruno Haible <bruno@clisp.org>
+
+ * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
+ warning.
+ * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
+ needed for POSIX compatibility.
+
+2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
+ for compatibility with GNU.
+
2007-11-01 Bruno Haible <bruno@clisp.org>
* lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.