+2010-04-11 Bruno Haible <bruno@clisp.org>
+
+ * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
+
+2010-04-11 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: don't include dist-check.mk
+ * top/maint.mk: Remove bogus include directive.
+
+ maint.mk: improve empty-line-at-EOF check
+ * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
+ solution, rather than tail+Perl-based one. The latter would read
+ a few kilobytes from the end of each file, and did not handle empty
+ files properly.
+
+ maint.mk: print the elapsed time for each syntax-check rule
+ * top/maint.mk (sc_m_rules_): Save start time in a file.
+ (sc_z_rules_): New rules: remove temp file and print elapsed time.
+ (local-check): Interpose the .z rules
+
+2010-04-11 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
+ * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
+ empty file with one that ends in an empty line.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ mkdir: Make it work on mingw64.
+ * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
+ * lib/mkdir.c: Update comment.
+ Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ Don't override improved macro from newer autoconf.
+ * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
+ autoconf >= 2.62.
+ Reported by Joel E. Denny <jdenny@clemson.edu>.
+
+2010-04-10 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: new syntax-check rule: prohibit empty lines at end of file
+ * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
+
+ maint.mk: correct a diagnostic
+ * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
+ in diagnostic; now use $prohibit.
+
+2010-04-10 Bruno Haible <address@hidden>
+
+ fchownat: Fix a C++ test error on Solaris 8.
+ * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
+ the function does not exist.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf: Add more tests.
+ * tests/test-vasnprintf-posix.c: Include <errno.h>.
+ (test_function): Test converting an invalid wide string.
+
+ vasnprintf: Correct handling of unconvertible wide string arguments.
+ * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
+ VASNPRINTF.
+ (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
+ if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
+ smaller than the expected maximum need for the directive. Set errno to
+ EILSEQ, not EINVAL, when the directive is 'c' or 's'.
+ (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
+ * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
+ gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
+ * modules/vasnprintf (Files): Add m4/printf.m4.
+ Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf: Fix crash in %ls directive.
+ * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
+ string is passed as argument to %ls, with no precision and no width.
+ Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf: Fix multiple test failures on mingw.
+ * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
+ _snprintf, or snwprintf, not _snwprintf.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ write: Fix a C++ test error on mingw.
+ * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf test: Reduce code duplication.
+ * tests/test-vasnprintf.c (test_function): New function, extracted from
+ test_vasnprintf.
+ (test_vasnprintf, test_asnprintf): Invoke it.
+
+2010-04-10 Bruno Haible <bruno@clisp.org>
+
+ strnlen: Fix warning in C++ mode on MacOS X.
+ * lib/string.in.h (strnlen): Use the modern idiom.
+ * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
+ defining strnlen as a macro already in <config.h>.
+ * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
+ REPLACE_STRNLEN.
+ * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
+ Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-08 James Youngman <jay@gnu.org>
+
+ * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
+ the example.
+
+2010-04-09 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: print better diagnostic when there is no $(_hv_file)
+ * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
+ announce that when $(_hv_file) (aka help-version) does not exist.
+
+ init.sh: run tr in the "C" locale to avoid multibyte interpretation
+ * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
+ not try to interpret its random input bytes. Jarno Rajahalme reported
+ that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
+ on Darwin 10.3.0 with LC_CTYPE=UTF-8.
+ (mktempd_): Likewise, just in case.
+
+ ftruncate: add two years to projected module removal date: 2012
+ * m4/ftruncate.m4: Adjust comments.
+
+ ftruncate: mark module as obsolete; even MinGW provides it, now
+ * modules/ftruncate (Status): Obsolete.
+ (Notice): Say that.
+ * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
+ http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
+
+2010-04-08 Bruno Haible <bruno@clisp.org>
+
+ Fix side effects from tests-related modules.
+ * modules/dprintf-posix (Comment): New section.
+ * modules/fprintf-posix (Comment): Likewise.
+ * modules/obstack-printf-posix (Comment): Likewise.
+ * modules/printf-posix (Comment): Likewise.
+ * modules/snprintf-posix (Comment): Likewise.
+ * modules/sprintf-posix (Comment): Likewise.
+ * modules/vasnprintf-posix (Comment): Likewise.
+ * modules/vasprintf-posix (Comment): Likewise.
+ * modules/vdprintf-posix (Comment): Likewise.
+ * modules/vfprintf-posix (Comment): Likewise.
+ * modules/vprintf-posix (Comment): Likewise.
+ * modules/vsnprintf-posix (Comment): Likewise.
+ * modules/vsprintf-posix (Comment): Likewise.
+ * modules/xprintf-posix (Comment): Likewise.
+ * modules/xvasprintf-posix (Comment): Likewise.
+ * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
+ * modules/floorf-tests (Depends-on): Likewise.
+ * modules/round-tests (Depends-on): Likewise.
+ * modules/roundf-tests (Depends-on): Likewise.
+ * modules/trunc-tests (Depends-on): Likewise.
+ * modules/truncf-tests (Depends-on): Likewise.
+ * tests/test-ceilf2.c (check): Don't invoke fprintf if the
+ 'fprintf-posix' module is not present.
+ * tests/test-floorf2.c (check): Likewise.
+ * tests/test-trunc2.c (check): Likewise.
+ * tests/test-truncf2.c (check): Likewise.
+ * tests/test-round2.c (equal): Likewise.
+ Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-07 Karl Berry <karl@gnu.org>
+
+ * config/srclist.txt,
+ * config/srclistvars.sh,
+ * config/srclist-update: doc fixes.
+
+2010-04-07 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: add a PATH crosschecking syntax-check rule
+ * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
+ Useful if you use a test like the one in help-version (coreutils,
+ diffutils, grep, gzip) that ensures $(VERSION) matches what is
+ printed by prog --version.
+
+2010-04-06 Bruno Haible <bruno@clisp.org>
+
+ Fix link error on mingw.
+ * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
+ * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
+
+2010-04-06 Bruno Haible <bruno@clisp.org>
+
+ Assume rmdir exists.
+ * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
+
+2010-04-06 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ doc: update users.txt
+ * users.txt: Add gcal.
+
+2010-04-06 Jim Meyering <meyering@redhat.com>
+
+ init.sh: simply unset TMPDIR rather than risking env -i
+ * tests/init.sh (mktempd_): Using env -i is rather harsh, and
+ although it probably works fine on all Unix-based systems, some
+ systems (Cygwin?) cannot tolerate a totally cleared environment.
+ Suggestion from Eric Blake.
+
+2010-04-06 Jim Meyering <meyering@redhat.com>
+
+ init.sh: portability fix: use env's POSIX-specified -i option not -u
+ * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
+ than unportable env -u. Solaris 5.11's env lacks support for -u.
+
+2010-04-05 Bruno Haible <bruno@clisp.org>
+
+ btowc: Work around Cygwin 1.7.2 bug.
+ * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
+ does not map NUL to 0.
+ * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
+
+2010-04-05 Bruno Haible <bruno@clisp.org>
+
+ Make the multithread modules work on Cygwin 1.7.2.
+ * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
+ imported symbols can be declared weak, so that it returns "no" on
+ Cygwin 1.7.2.
+
+2010-04-05 Bruno Haible <bruno@clisp.org>
+
+ Use the module 'strncat'.
+ * modules/unistr/u8-strncat (Depends-on): Add strncat.
+
+ Tests for module 'strncat'.
+ * modules/strncat-tests: New file.
+ * tests/test-strncat.c: New file.
+
+ New module 'strncat'.
+ * lib/string.in.h (strncat): New declaration.
+ * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
+ * m4/strncat.m4: New file, based on m4/memchr.m4.
+ * modules/strncat: New file.
+ * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
+ is declared.
+ (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
+ REPLACE_STRNCAT.
+ * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
+ REPLACE_STRNCAT.
+ * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
+ module.
+ * tests/test-string-c++.cc: Check signature of strncat.
+
+2010-04-05 Jim Meyering <meyering@redhat.com>
+
+ xstrtoumax-tests: convert to use init.sh
+ * modules/xstrtoumax-tests (Files): Add tests/init.sh.
+ * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
+ Use Exit, not exit.
+ Remove uses of $EXEEXT and "./" to run a program in the current dir.
+
+ xstrtoimax-tests: convert to use init.sh
+ * modules/xstrtoimax-tests (Files): Add tests/init.sh.
+ * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
+ Use Exit, not exit.
+ Remove uses of $EXEEXT and "./" to run a program in the current dir.
+
2010-04-05 Bruno Haible <bruno@clisp.org>
sys_socket: Avoid #define replacements in C++ mode.