+2009-01-27 Mark McLoughlin <markmc@redhat.com>
+
+ test-getaddrinfo: skip (don't fail) this test when there's no network
+ * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
+ on the presumption that it means you lack network access.
+
+2009-01-26 Jim Meyering <meyering@redhat.com>
+
+ fflush: avoid warnings on modern systems
+ * lib/fflush.c (rpl_fflush): Move declarations of locals,
+ pos and result, into scopes where they're used.
+
+2009-01-26 Eric Blake <ebb9@byu.net>
+
+ Silence warning reintroduced by recent extensions patch.
+ * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
+ (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
+ autoconf.
+
+ Backport improved autoconf semantics of AC_DEFUN_ONCE.
+ * m4/00gnulib.m4: New file.
+ * gnulib-tool (func_get_filelist): Always use it.
+ * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
+ Reported by Bruno Haible, with suggestions from Paolo Bonzini.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ Make test-quotearg work on MacOS X and AIX.
+ * tests/test-quotearg.sh: New file.
+ * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
+ * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
+ * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
+ include <libintl.h>.
+ (fake_locale): Remove variable.
+ (gettext, dgettext, dcgettext): Remove functions.
+ (main): Instead of setting a fake locale, set a real locale. Call
+ textdomain and bindtextdomain.
+ * modules/quotearg-tests (Files): Add the new files.
+ (Depends-on): Add gettext, setenv, unsetenv.
+ (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
+ (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
+ Augment TESTS_ENVIRONMENT.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
+ fr_FR.ISO8859-1 locale on MacOS X.
+ * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
+ ja_JP.eucJP locale on MacOS X.
+ * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
+ zh_CN.GB18030 locale on MacOS X.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ Avoid link errors on MacOS X 10.3.
+ * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
+ * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
+ * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
+ * modules/pipe (Files): Remove m4/posix_spawn.m4.
+ (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
+ posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
+ posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
+ posix_spawnattr_init, posix_spawnattr_setsigmask,
+ posix_spawnattr_setflags, posix_spawnattr_destroy.
+
+ * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
+ * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
+ * modules/execute (Files): Remove m4/posix_spawn.m4.
+ (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
+ posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
+ posix_spawnattr_init, posix_spawnattr_setsigmask,
+ posix_spawnattr_setflags, posix_spawnattr_destroy.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/threadlib.c: Include <stdlib.h>.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/threadlib.c (dummy): New declaration.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
+ multibyte characters also for the GB18030 encoding. Don't crash when
+ the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ Avoid redefining 'struct random_data' on OSF/1 5.1.
+ * lib/stdlib.in.h: Include <random.h> if it exists.
+ * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
+ HAVE_RANDOM_H. Include <random.h> when testing whether
+ 'struct random_data' exists.
+ * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ Don't install charset.alias on MacOS X >= 10.3.
+ * lib/localcharset.c (DARWIN7): New macro.
+ (get_charset_aliases): Hardcode the result for Darwin7.
+ * modules/localcharset (install-exec-local): Don't install
+ charset.alias on MacOS X >= 10.3, if the file does not yet exist.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ Don't install charset.alias on mingw and Cygwin.
+ * modules/localcharset (install-exec-local): Don't install
+ charset.alias on mingw and Cygwin, if the file does not yet exist.
+ The result for these platforms is hardcoded in localcharset.c.
+
+2009-01-25 Bruno Haible <bruno@clisp.org>
+
+ Make it possible again to use AC_GNU_SOURCE together with gnulib.
+ * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
+ before requiring AC_USE_SYSTEM_EXTENSIONS.
+
+2009-01-25 Jim Meyering <meyering@redhat.com>
+
+ c-strtod: avoid warnings
+ * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
+ "assignment discards qualifiers from pointer target type" warnings.
+
+2009-01-24 Bruno Haible <bruno@clisp.org>
+
+ Add support for non-UTF-8 locales on MacOS X.
+ * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
+ canonical encodings. For Darwin 7 and newer, don't map traditional
+ encodings to UTF-8.
+ Reported by Vincent Lefevre <vincent@vinc17.org>
+ at <http://savannah.gnu.org/bugs/?25235>.
+
+2009-01-24 Bruno Haible <bruno@clisp.org>
+
+ * doc/gnulib.texi (Obsolete modules): New section.
+ Reported by Mike Frysinger <vapier@gentoo.org>.
+
+2009-01-24 Bruno Haible <bruno@clisp.org>
+
+ * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
+ (%.dvi): New rule.
+
+2009-01-24 Bruno Haible <bruno@clisp.org>
+
+ * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
+ Reported by Eric Blake.
+
+2009-01-24 Bruno Haible <bruno@clisp.org>
+
+ * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
+ set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
+ Reported by Gary V. Vaughan <gary@gnu.org>.
+
+2009-01-24 Bruno Haible <bruno@clisp.org>
+
+ * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
+
+2009-01-23 Bruno Haible <bruno@clisp.org>
+
+ Make c-strtod, c-strtold usable in libraries.
+ * lib/c-strtod.c: Include string.h instead of xalloc.h.
+ (C_STRTOD): Call strdup instead of xstrdup.
+ * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
+ * modules/c-strtold (Depends-on): Likewise.
+ * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
+ * NEWS: Mention the change.
+ Reported by Michael Gold <mgold@ncf.ca>.
+
+2009-01-23 Jim Meyering <meyering@redhat.com>
+
+ c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
+ * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
+ ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
+
+2009-01-23 Simon Josefsson <simon@josefsson.org>
+
+ * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
+ GNU CoreUtils.
+ * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
+ * modules/version-etc (Description): Update.
+
+2009-01-22 Bruno Haible <bruno@clisp.org>
+
+ Cache the C locale object.
+ * lib/c-strtod.c (c_locale_cache): New variable.
+ (c_locale): New function.
+ (C_STRTOD): Use it, and don't call freelocale.
+ * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
+ Suggested by Paolo Bonzini.
+
+2009-01-21 Bruno Haible <bruno@clisp.org>
+
+ * lib/getloadavg.c (getloadavg): Check c_strtod result against error
+ conditions other than overflow.
+
+2009-01-21 Bruno Haible <bruno@clisp.org>
+
+ * lib/c-strtod.c: Include errno.h.
+ (C_STRTOD): Check against NULL return from newlocale. Preserve errno
+ value from STRTOD_L and STRTOD.
+
+2009-01-21 Bruno Haible <bruno@clisp.org>
+ and Jim Meyering <meyering@redhat.com>
+
+ nanosleep: skip configure test (fail it) for apple universal builds
+ * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
+ universal builds, assume that nanosleep does not work.
+ * modules/nanosleep (Depends-on): Add multiarch.
+
+ mktime: skip configure test (fail it) for apple universal builds
+ * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
+ universal builds, assume that mktime does not work.
+ * modules/mktime (Depends-on): Add multiarch.
+
2009-01-21 Eric Blake <ebb9@byu.net>
multiarch: avoid expand-before-require warning