Avoid link failure for the argmatch test.
[gnulib.git] / ChangeLog
index 8ea2319..1190f18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,332 @@
+2007-11-10  Jim Meyering  <meyering@redhat.com>
+
+       Avoid link failure for the argmatch test.
+       * tests/test-argmatch.c (usage): Define function to avoid a link
+       failure: argmatch_die requires a usage function.
+
+2007-11-09  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions/snprintf.texi: Mention BeOS deficiency.
+       * doc/functions/vsnprintf.texi: Likewise.
+       * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
+       with a size argument < 2.
+
+2007-11-09  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
+       buffer. Fixes an inefficiency introduced on 2007-11-03.
+
+2007-11-09  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
+       none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
+
+2007-11-08  Jim Meyering  <meyering@redhat.com>
+
+       Change cache variable name prefix "jm_" to "gl_" everywhere.
+       * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
+       * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
+       * m4/uptime.m4: s/gl_/jm_/
+
+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.
+       (putenv): Renamed from rpl_putenv. Change argument type from
+       'const char *' to 'char *'.
+       * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
+       of defining putenv in config.h, just set REPLACE_PUTENV.
+       * modules/putenv (Depends-on): Add stdlib.
+       (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+       (Include): Use <stdlib.h>.
+       * lib/stdlib.in.h (putenv): New declaration.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
+       REPLACE_PUTENV.
+       * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
+       REPLACE_PUTENV.
+       Needed for MacOS X 10.5.0.
+       Reported by Peter O'Gorman <peter@pogma.com>.
+
+2007-11-01  Jim Meyering  <meyering@redhat.com>
+
+       Treat an empty date string exactly like "0".
+       * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
+       if the remaining date string (to be parsed) is empty, use "0".
+       Reported by Mischa Molhoek and discussed in this thread:
+       <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
+
+2007-10-31  Bruno Haible  <bruno@clisp.org>
+
+       * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
+       AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
+       * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
+       AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
+       * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
+       * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
+
+2007-10-31  Bruno Haible  <bruno@clisp.org>
+
+       * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
+       from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
+       (AC_TYPE_LONG_LONG_INT): Use it.
+       (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
+       it as well.
+       * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
+       to m4/longlong.m4.
+       * modules/stdint (Files): Remove m4/ulonglong.m4.
+       * modules/strtoull (Files): Use m4/longlong.m4 instead of
+       m4/ulonglong.m4.
+       * modules/strtoumax (Files): Likewise.
+
+2007-10-30  Bruno Haible  <bruno@clisp.org>
+
+       * modules/xvasprintf-posix: New file.
+       Suggested by Eric Blake.
+
+2007-10-30  Bruno Haible  <bruno@clisp.org>
+
+       * modules/xprintf-posix-tests: New file.
+       * tests/test-xprintf-posix.sh: New file.
+       * tests/test-xprintf-posix.c: New file.
+       * tests/test-xfprintf-posix.c: New file.
+
+       * modules/xprintf-posix: New file.
+
+2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
+       * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
+       * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
+
+2007-10-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
+       contain the special marker '_cv_'.
+       * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
+       * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
+       * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
+       * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
+       * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
+       Reported by Ralf Wildenhues.
+
 2007-10-29  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_import): When --lgpl is not specified, set