locale: Make locale_t available when possible.
[pspp] / ChangeLog
index cf14b4ba159e63f2de5bf754c10974f94349b399..3e7980f5c3c042a7d23c5094337e83d0c136013b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,176 @@
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       locale: Make locale_t available when possible.
+       * lib/locale.in.h: Include <xlocale.h> when it exists.
+       * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
+       replace <locale.h> if it does not define locale_t but <xlocale.h> does.
+       * modules/locale (Depends-on): Add extensions.
+       (Makefile.am): Also substitute HAVE_XLOCALE_H.
+       * doc/posix-headers/locale.texi: Document the problem with locale_t.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       Add comments.
+       * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
+       invocation.
+       * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
+       * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
+       * m4/wchar.m4 (gl_WCHAR_H): Likewise.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       error: account for the possibility of freopen (stdout).
+       * lib/error.c: Include <unistd.h>.
+       (flush_stdout): New function, extracted from error and error_at_line.
+       Determine stdout's fd dynamically.
+       (error, error_at_line): Invoke flush_stdout.
+       * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
+       * modules/error (Depends-on): Add unistd.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       diffseq: Add comment.
+       * lib/diffseq.h (IF_LINT): Add comment about pitfall.
+
+2009-11-22  Jim Meyering  <meyering@redhat.com>
+
+       c-stack: avoid defining an unused static function
+       * lib/c-stack.c (find_stack_direction): Do not define this function
+       when it will not be used.
+
+       diffseq: avoid spurious gcc warnings
+       * lib/diffseq.h (IF_LINT2): Define.
+       (compareseq): Use it to initialize two members of "part".
+       This avoids two used-uninitialized warnings.
+
+2009-11-21  Jim Meyering  <meyering@redhat.com>
+
+       c-stack: avoid "ignoring return value of `write'" warning
+       * lib/c-stack.c: Include "ignore-value.h".
+       (die): Explicitly ignore each write return value.
+       * modules/c-stack (Depends-on): Add ignore-value.
+
+2009-11-21  Bruno Haible  <bruno@clisp.org>
+
+       diffseq: reduce scope of variable 'best'.
+       * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
+       variable, earlier used for two different purposes.
+
+2009-11-21  Jim Meyering  <meyering@redhat.com>
+
+       diffseq: remove useless assignment to "best"
+       * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
+       assignment.  At that point "best" is already guaranteed to be zero.
+
+2009-11-20  Eric Blake  <ebb9@byu.net>
+
+       build: mention ftp redirector in release announcements
+       * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
+       values that used to come from cfg.mk; mention FTP redirect URL.
+       * build-aux/announce-gen: Mention the mirror list.
+       Suggested by Karl Berry.
+
+       nanosleep: improve port to mingw
+       * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
+       LIB_NANOSLEEP, but only when needed.
+       * modules/select (Link): Document LIBSOCKET.
+       * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
+       enough.
+
+       nanosleep: work around cygwin bug
+       * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
+       Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
+       bug.
+       (getnow): Delete, not needed.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
+       LIB_CLOCK_GETTIME.
+       * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
+       clock-time, gettime.
+       * doc/posix-functions/nanosleep.texi (nanosleep): Document the
+       bug.
+       * modules/nanosleep-tests: New test.
+       * tests/test-nanosleep.c: New file.
+
+       sleep: work around cygwin bug
+       * lib/sleep.c (rpl_sleep): Work around the bug.
+       * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
+       (gl_PREREQ_SLEEP): Delete unused macro.
+       * modules/sleep (Depends-on): Add verify.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
+       * modules/unistd (Makefile.am): Substitute witness.
+       * lib/unistd.in.h (sleep): Update prototype.
+       * doc/posix-functions/sleep.texi (sleep): Document the bug.
+       * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
+       * modules/sleep-tests (Depends-on): Check for alarm.
+
+2009-11-20  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: improve sc_prohibit_magic_number_exit
+       * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
+       so it does not match uses like System.exit(1).
+       Add comments showing how to correct all offenders.
+
+2009-11-19  Eric Blake  <ebb9@byu.net>
+
+       xalloc-die-tests: add missing library
+       * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
+
+       test-xvasprintf: silence compiler warnings
+       * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
+       empty string from gcc.
+
+2009-11-19  Jim Meyering  <meyering@redhat.com>
+
+       xfreopen: new module, from coreutils
+       * modules/xfreopen: New module.
+       * lib/xfreopen.c: New file.
+       * lib/xfreopen.h: New file.
+       * MODULES.html.sh (File stream based Input/Output"): Add it.
+
+2009-11-19  Eric Blake  <ebb9@byu.net>
+
+       manywarnings: depend on warnings
+       * modules/manywarnings (Depends-on): Add warnings.
+
+       build: avoid compiler warnings
+       * lib/select.c (rpl_select): Delete unused variable.
+       * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
+
+2009-11-18  Eric Blake  <ebb9@byu.net>
+
+       tests: avoid false negative with --with-packager
+       * tests/test-version-etc.sh: Discard packager information.
+       * tests/test-argp-version-etc-1.sh: Likewise.
+       Reported by Mike Frysinger.
+
+       utimens: fix regression on Solaris
+       * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
+       * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
+       can only change fd timestamps via futimesat.  Instead, use an
+       additional witness macro to avoid BSD bug.
+       Reported by Jim Meyering.
+
 2009-11-17  Eric Blake  <ebb9@byu.net>
 
+       usleep: use it to simplify tests
+       * modules/stat-time-tests (Depends-on): Add usleep.
+       (configure.ac): Drop usleep check.
+       * modules/chown-tests (Depends-on, configure.ac): Likewise.
+       * modules/lchown-tests (Depends-on, configure.ac): Likewise.
+       * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
+       * modules/futimens-tests (Depends-on, configure.ac): Likewise.
+       * modules/openat-tests (Depends-on, configure.ac): Likewise.
+       * modules/utimens-tests (Depends-on, configure.ac): Likewise.
+       * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
+       * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
+       Likewise.
+       * tests/test-chown.h (nap): Rely on nicer usleep semantics.
+       * tests/test-lchown.h (nap): Likewise.
+       * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
+       * tests/test-stat-time.c (nap): Likewise.
+       * tests/test-utimens-common.h (nap): Update comments.
+
        usleep: new module
        * modules/usleep: New file.
        * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.