+2008-04-03 Eric Blake <ebb9@byu.net>
+
+ Allow VPATH usage of vc-list-files.
+ * build-aux/vc-list-files (scriptversion): Add timestamp.
+ (options): Add --help, --version, -C.
+ (CVS): Support installed cvsu.
+
+2008-04-02 Bruno Haible <bruno@clisp.org>
+
+ Avoid some "statement with no effect" warnings from gcc.
+ * tests/test-wctype.c (main): Explicitly ignore unused values.
+ Reported by Jim Meyering.
+
+2008-04-02 Jim Meyering <meyering@redhat.com>
+
+ Avoid some warnings from "gcc -Wshadow".
+ * tests/test-frexp.c (exp): Define to a different identifier.
+ * tests/test-frexpl.c (exp): Likewise.
+
+2008-04-03 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: remove dangling *.[ch] symlinks from lib
+ * build-aux/bootstrap [dangling symlink removal]: Move find's
+ -depth option to precede all others, to avoid a warning.
+ Remove *.[ch] files too, and from "$source_base" (usually lib/).
+
+2008-04-02 Bruno Haible <bruno@clisp.org>
+
+ Avoid some warnings from "gcc -Wshadow".
+ * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
+ * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
+ * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
+ * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
+ Reported by Jim Meyering.
+
+2008-04-01 Bruno Haible <bruno@clisp.org>
+
+ Fix test to work on IRIX 6.5 with cc.
+ * tests/test-math.c (numeric_equal): New function.
+ (main): Use it.
+
+2008-04-01 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-headers/math.texi: Refine documentation of NAN problem.
+
+2008-04-01 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
+ (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
+ * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
+ (Depends-on): Remove math.
+
+ * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
+ (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
+ * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
+ (Depends-on): Remove math.
+
+ * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
+ (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
+ * modules/snprintf-posix-tests (Files): Add tests/nan.h.
+ (Depends-on): Remove math.
+ * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
+ (Depends-on): Remove math.
+
+ * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
+ (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
+ * modules/sprintf-posix-tests (Files): Add tests/nan.h.
+ (Depends-on): Remove math.
+ * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
+ (Depends-on): Remove math.
+
+ * tests/test-round1.c: Include nan.h.
+ (main): Use NaNd instead of NAN.
+ * modules/round-tests (Files): Add tests/nan.h.
+
+ * tests/test-trunc1.c: Include nan.h.
+ (main): Use NaNd instead of NAN.
+ * modules/trunc-tests (Files): Add tests/nan.h.
+
+ * tests/test-roundf1.c: Include nan.h.
+ (main): Use NaNf instead of NAN.
+ * modules/roundf-tests (Files): Add tests/nan.h.
+
+ * tests/test-truncf1.c: Include nan.h.
+ (main): Use NaNf instead of NAN.
+ * modules/truncf-tests (Files): Add tests/nan.h.
+
+ * tests/test-ceilf1.c: Include nan.h.
+ (main): Use NaNf instead of NAN.
+ * modules/ceilf-tests (Files): Add tests/nan.h.
+
+ * tests/test-floorf1.c: Include nan.h.
+ (main): Use NaNf instead of NAN.
+ * modules/floorf-tests (Files): Add tests/nan.h.
+
+ * tests/test-isnanf.c: Include nan.h instead of <math.h>.
+ (main): Use NaNf instead of NAN.
+ * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
+
+ * tests/test-isnand.c: Include nan.h instead of <math.h>.
+ (main): Use NaNd instead of NAN.
+ * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
+
+ * tests/test-frexp.c: Include nan.h.
+ (main): Use NaNd instead of NAN.
+ * modules/frexp-tests (Files): Add tests/nan.h.
+
+ * lib/isnan.c: Don't include <math.h>.
+ (FUNC): Don't use NAN macro.
+ * modules/isnand-nolibm (Depends-on): Remove math.
+ * modules/isnanf-nolibm (Depends-on): Remove math.
+ * modules/isnanl (Depends-on): Remove math.
+ * modules/isnanl-nolibm (Depends-on): Remove math.
+
+ * tests/nan.h: New file.
+
+2008-04-01 Eric Blake <ebb9@byu.net>
+
+ Fix typos.
+ * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
+ values to be the right type.
+
+ For now, cater to gnulib strtod inaccuracies.
+ * tests/test-strtod.c (main): Allow 1-ulp error on expected
+ fractional results. While not as nice from a QoI perspective, it
+ is a quicker patch than correctly implementing decimal to binary
+ rounding.
+
+2008-03-31 Eric Blake <ebb9@byu.net>
+
+ Guarantee a definition of NAN.
+ * lib/math.in.h (NAN): Define if missing.
+ * tests/test-math.c (main): Test it.
+ * doc/posix-headers/math.texi (math.h): Document this.
+ * lib/isnan.c (rpl_isnand): Use it.
+ * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
+ * tests/test-floorf1.c (NaN): Likewise.
+ * tests/test-frexp.c (NaN): Likewise.
+ * tests/test-isnand.c (NaN): Likewise.
+ * tests/test-isnanf.c (NaN): Likewise.
+ * tests/test-round1.c (NaN): Likewise.
+ * tests/test-roundf1.c (NaN): Likewise.
+ * tests/test-snprintf-posix.h (NaN): Likewise.
+ * tests/test-sprintf-posix.h (NaN): Likewise.
+ * tests/test-trunc1.c (NaN): Likewise.
+ * tests/test-truncf1.c (NaN): Likewise.
+ * tests/test-vasnprintf-posix.c (NaN): Likewise.
+ * tests/test-vasprintf-posix.c (NaN): Likewise.
+ * modules/isnand-nolibm (Depends-on): Add math.
+ * modules/isnanf-nolibm (Depends-on): Likewise.
+ * modules/isnanl (Depends-on): Likewise.
+ * modules/isnanl-nolibm (Depends-on): Likewise.
+ * modules/snprintf-posix-tests (Depends-on): Likewise.
+ * modules/sprintf-posix-tests (Depends-on): Likewise.
+ * modules/vsnprintf-posix-tests (Depends-on): Likewise.
+ * modules/vsprintf-posix-tests (Depends-on): Likewise.
+ * modules/vasnprintf-posix-tests (Depends-on): Likewise.
+ * modules/vasprintf-posix-tests (Depends-on): Likewise.
+
+2008-03-31 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-strtod.c (main): Update results for OSF/1 platforms.
+ * doc/posix-functions/strtod.texi: Likewise.
+
+2008-03-31 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-strtod.c (main): Don't use C99 syntax.
+
+2008-03-31 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
+ Reported by Eric Blake.
+
+2008-03-31 Jim Meyering <meyering@redhat.com>
+
+ Don't compare actual signbit return values.
+ * tests/test-strtod.c (main): Rather, compare only their
+ zero/non-zero nature.
+
+2008-03-31 Eric Blake <ebb9@byu.net>
+
+ More strtod documentation.
+ * doc/posix-functions/strtod.texi (strtod): Interpret more test
+ failures as distinct bugs.
+
+2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
+ Problem reported by Erik Benada in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-strtod.c: Add comments about which assertion fails on which
+ platform.
+ * doc/posix-functions/strtod.texi: Add info about many more platforms.
+
+2008-03-30 Eric Blake <ebb9@byu.net>
+
+ Test signbit behavior on zeros.
+ * tests/test-signbit.c (test_signbitf): Add tests for zero.
+ (test_signbitd, test_signbitl): Likewise.
+
+ More strtod touchups.
+ * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
+ sign of negative underflow, for now. Use .5, not .1.
+ * doc/posix-functions/strtod.texi (strtod): Mention these
+ limitations.
+ Reported by Jim Meyering.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
+ from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ Avoid failure when attempting to return empty iconv results on some
+ platforms.
+ * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
+ allocation, don't report ENOMEM when the resulting string is empty.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ Fix buffer overrun.
+ * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
+ Don't consider the width for tmp_length. Check count against tmp_length
+ before doing the padding. Ensure enough allocation during padding.
+
+2008-03-30 Eric Blake <ebb9@byu.net>
+
+ strtod touchups.
+ * lib/strtod.c (strtod): Avoid compiler warnings.
+ Reported by Jim Meyering.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
+ * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
+ * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
+ * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
+ * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
+ * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
+ * modules/xvasprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/vsprintf.c (EOVERFLOW): Remove fallback.
+ * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
+
+ * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
+ * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/vsnprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/vfprintf.c (EOVERFLOW): Remove fallback.
+ * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
+
+ * lib/vasprintf.c (EOVERFLOW): Remove fallback.
+ * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/vasprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
+ * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
+ * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+ * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
+ (Depends-on): Add EOVERFLOW.
+
+ * lib/sprintf.c (EOVERFLOW): Remove fallback.
+ * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
+
+ * lib/snprintf.c (EOVERFLOW): Remove fallback.
+ * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/snprintf (Depends-on): Add EOVERFLOW.
+
+ * lib/poll.c (EOVERFLOW): Remove fallback.
+ * modules/poll (Depends-on): Add EOVERFLOW.
+
+ * lib/getugroups.c (EOVERFLOW): Remove fallback.
+ * modules/getugroups (Depends-on): Add EOVERFLOW.
+
+ * lib/getdelim.c (EOVERFLOW): Remove fallback.
+ * modules/getdelim (Depends-on): Add EOVERFLOW.
+
+ * lib/ftell.c (EOVERFLOW): Remove fallback.
+ * modules/ftell (Depends-on): Add EOVERFLOW.
+
+ * lib/fprintf.c (EOVERFLOW): Remove fallback.
+ * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
+ * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
+
+ * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
+
+ * modules/EOVERFLOW-tests: New file.
+ * tests/test-EOVERFLOW.c: New file.
+
+ * modules/EOVERFLOW: New file.
+ * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ Fix bug introduced on 2007-06-10.
+ * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
+ spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ Improve freadseek's efficiency after ungetc.
+ * lib/freadseek.c: Include freadahead.h.
+ (freadptrinc): New function, extracted from freadseek.
+ (freadseek): Use it in a loop. Use freadahead to determine the number
+ of loop iterations.
+ * modules/freadseek (Depends-on): Add freadahead.
+ (configure.ac): Require AC_C_INLINE.
+
+2008-03-30 Bruno Haible <bruno@clisp.org>
+
+ * lib/freadseek.c (freadseek): Don't ignore the return value of
+ freadptr.
+
2008-03-29 Eric Blake <ebb9@byu.net>
+ Add hex float support.
+ * modules/strtod (Depends-on): Add c-ctype.
+ (Link): Mention POW_LIB.
+ * lib/strtod.c (strtod): Recognize hex floats. Don't allow
+ whitespace between 'e' and exponent.
+ * tests/test-strtod.c (main): Enable hex float tests.
+ * doc/posix-functions/strtod.texi (strtod): Document what gnulib
+ now provides.
+
Document various strtod bugs, with some fixes.
* doc/posix-functions/strtod.texi (strtod): Document bugs with
"-0x", "inf", "nan", and hex constants.
* tests/test-ftello.c (main): Likewise.
Pass test-freadseek on cygwin.
- * modules/freadseek (Depends-on): Use freadptr, not freadseek.
+ * modules/freadseek (Depends-on): Use freadptr, not freadahead.
* lib/freadseek.c (freadseek): Don't increment beyond bounds of
ungetc buffer.
+
* tests/test-fflush2.c (main): Fix typo.
2008-03-29 Bruno Haible <bruno@clisp.org>