X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=f1e4fdcf97c38939af99b1d3bb83635802487e14;hb=980097f8eca9e08feb2073d06179f53ba46b805e;hp=0f554e6d3359adfc2b654468ffa84bf7374327b2;hpb=65c8c0b8a2060af8af5afdf1e1ff979b7f727b01;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 0f554e6d3..f1e4fdcf9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,448 @@ +2012-01-12 Bruno Haible + + random_r: Use common idioms. + * lib/random_r.c: Include first. + + random_r: Override incompatible API on AIX, OSF/1. + * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r): + Override the system function if REPLACE_RANDOM_R is 1. + * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX + and OSF/1, set REPLACE_RANDOM_R. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R. + * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R. + * modules/random_r (configure.ac): Test REPLACE_RANDOM_R. + * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem. + * doc/glibc-functions/random_r.texi: Likewise. + * doc/glibc-functions/setstate_r.texi: Likewise. + + random_r: Support for MSVC 9. + * lib/random_r.c: Include stdint.h, not inttypes.h. + +2012-01-12 Eric Blake + + inet_ntop: guard extra work by IF_LINT + * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for + better code generation when not checking for warnings. + Suggested by Paul Eggert and Jim Meyering. + + strptime: fix regression on mingw + * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]: + Fix regression. Reported by Bruno Haible. + +2012-01-11 Reuben Thomas + Bruno Haible + + copy-file: add error-code-returning variant. + * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items. + (qcopy_file_preserving): New declaration. + * lib/copy-file.c (qcopy_file_preserving): Renamed from + copy_file_preserving. Change return type to 'int'. Don't emit an error + message here. + (copy_file_preserving): New function. + * tests/test-copy-file.c: Include . + (main): Test qcopy_file_preserving if the environment variable + NO_STDERR_OUTPUT is set. + * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time, + with NO_STDERR_OUTPUT + * tests/test-copy-file-2.sh: Likewise. + +2012-01-10 Bruno Haible + + copy-file: Use 'quote' module consistently. + * lib/copy-file.c (copy_file_preserving): Use quote(). + + copy-file: Refactor. + * lib/copy-file.c: Include quote.h. + (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error + message here. + * modules/copy-file (Depends-on): Add quote. + + acl: Export qcopy_acl. + * lib/acl.h (qcopy_acl): New declaration. + * lib/copy-acl.c (qcopy_acl): Make non-static. + + acl: Rename a local variable. + * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl. + + acl: Align return values of copy_acl and qcopy_acl. + * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl, + maybe < -1. + +2012-01-11 Eric Blake + + strptime: silence gcc warnings + * lib/strptime.c (__strptime_internal) [!_NL_CURRENT], + [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables. + Reported by Daniel P. Berrange. + + inet_ntop: silence gcc warning + * lib/inet_ntop.c (inet_ntop6): Initialize best.base. + Reported by Daniel P. Berrange. + +2012-01-11 Dmitry V. Levin + + getloadavg test: skip the test on GNU/Linux without /proc mounted + GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg + file. When /proc is not mounted, it always fails with ENOENT. + * tests/test-getloadavg.c (main): Treat ENOENT return code from + getloadavg(3) the same way as ENOSYS and ENOTSUP. + +2012-01-10 Bruno Haible + + regex: Avoid link error on MSVC 9. + * modules/regex (Depends-on): Add wctype. + +2012-01-10 Bruno Haible + + doc: Mention --with-tests option. + * gnulib-tool (func_usage): Suggest --with-tests for --test etc. + * doc/gnulib.texi (Extra tests modules): Mention the need to pass + --with-tests. + Reported by Reuben Thomas. + +2012-01-10 Reuben Thomas + + users.txt: order package names lexicographically. + * users.txt: Order package names lexicographically. + +2012-01-10 Jim Meyering + + maint.mk: fix description in comment + * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment. + + ignore-value: remove deprecated ignore_ptr function + * lib/ignore-value.h (ignore_ptr): Remove deprecated function. + * NEWS: Note this. + +2012-01-09 Jim Meyering + + test-init.sh: avoid a subshell + * tests/test-init.sh: Remove protective subshell. + Suggested by Bernhard Voelker. While a subshell is normally + required to protect against older shells (Solaris, FreeBSD) that + warn about a missing program before performing redirection, the + shell-selection tests performed by init.sh probably exclude any + offending shell. + +2012-01-08 Bruno Haible + + setlocale tests: Avoid test failure on Solaris 11 2011-11. + * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment + variable. + +2012-01-08 Bruno Haible + + posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug. + * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. + * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New + macro. + * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN. + * lib/spawn_faction_addopen.c: Add workaround implementation if + HAVE_WORKING_POSIX_SPAWN. + * modules/spawn (Makefile): Substitute + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. + * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke + gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN. + (Depends-on): Update conditions. + * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention + the Solaris 11 bug. + +2012-01-08 Bruno Haible + + posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug. + * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. + * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New + macro. + * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN. + * lib/spawn_faction_adddup2.c: Add workaround implementation if + HAVE_WORKING_POSIX_SPAWN. + * modules/spawn (Makefile): Substitute + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. + * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke + gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN. + (Depends-on): Update conditions. + * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention + the Solaris 11 bug. + +2012-01-08 Bruno Haible + + posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug. + * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define + HAVE_WORKING_POSIX_SPAWN. + (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro. + * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN. + * lib/spawn_faction_addclose.c: Add workaround implementation if + HAVE_WORKING_POSIX_SPAWN. + * modules/spawn (Makefile): Substitute + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. + * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke + gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test + REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN. + (Depends-on): Update conditions. + * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention + the Solaris 11 bug. + +2012-01-08 Bruno Haible + + doc: Update for Solaris 11 2011-11. + * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate. + * m4/printf.m4: Update comments. + +2012-01-08 Bruno Haible + + mktime: Avoid compilation error on Solaris 11. + * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems. + +2012-01-08 Bruno Haible + + doc: Small fix. + * doc/posix-headers/nl_types.texi: Correct platforms list. + +2012-01-08 Simon Josefsson + + Add lgpl-3.0 module. + * MODULES.html.sh (Support for building documentation): Add + lgpl-3.0. + * modules/lgpl-3.0: New file. + +2012-01-08 Jim Meyering + + select.c: indent with spaces, not TABs + * lib/select.c (windows_poll_handle): Indent with spaces, not TABs. + +2012-01-07 Paolo Bonzini + + quotearg: do not use grave accent for left quote + * lib/quotearg.c (gettext_quote): Map "`" to "'" for + locale_quoting_style. + (quotearg_buffer_restyled): Fix example. + * tests/test-quotearg-simple.c (results_g): Adjust test vectors. + +2012-01-07 Paolo Bonzini + + quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales + Most programs do not have translation catalogs for English and much + less separate catalogs for British and American English. Drop the + suggestion to translators about these two, and provide it + automatically for Unicode locales. Like most programs, even those + using American English, we use single quotation marks. This conflicts + with the American typographic convention, but works better when you + cite the entire error message within double quotes. It also tries not + to clash with established practice and with what non-gnulib programs + will usually do. + * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when + using an UTF-8 or GB-18030 locale. The list of other locales with + quotes was provided by Bruno Haible. + (quotearg_buffer_restyled): Adjust instructions to translators. + * lib/quotearg.h (locale_quoting_style): Do not put an example in the + text, since this would be wrong when using Unicode. + * modules/quotearg: Depend on c-strcaseeq. + +2012-01-07 Paolo Bonzini + + quotearg: fix Wikipedia link + * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia. + +2012-01-07 Simon Josefsson + + Fix for mingw with MSVC9. + * m4/ld-version-script.m4: Check that compiler rejects version + scripts with syntax errors. Reported by Bruno Haible + . + +2012-01-06 Bruno Haible + + Talk about "native Windows API", not "Woe32". + * lib/accept4.c: Update comments to mention native Windows. + * lib/execute.c: Likewise. + * lib/fatal-signal.c: Likewise. + * lib/localcharset.c: Likewise. + * lib/nanosleep.c: Likewise. + * lib/nl_langinfo.c: Likewise. + * lib/pclose.c: Likewise. + * lib/pipe-filter-gi.c: Likewise. + * lib/pipe-filter-ii.c: Likewise. + * lib/pipe.c: Likewise. + * lib/pipe2.c: Likewise. + * lib/popen.c: Likewise. + * lib/progreloc.c: Likewise. + * lib/relocatable.c: Likewise. + * lib/sigaction.c: Likewise. + * lib/sigprocmask.c: Likewise. + * lib/spawn-pipe.h: Likewise. + * lib/spawn-pipe.c: Likewise. + * lib/spawni.c: Likewise. + * lib/stat-time.h: Likewise. + * lib/w32spawn.h: Likewise. + * tests/test-isatty.c: Likewise. + * lib/config.charset: More comments. + * doc/gnulib-intro.texi: Mention native Windows. + * doc/posix-functions/_Exit_C99.texi: Likewise. + * doc/posix-headers/fcntl.texi: Likewise. + +2012-01-06 Guillem Jover (tiny change) + + argp: Avoid crash if translator uses % characters in a translation. + * lib/argp-parse.c (argp_version_parser): Use a "%s" format string. + Reported by Mats Erik Andersson . + +2012-01-06 Paul Eggert + + doc: C11 and C++11 are now official + * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi: + * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4: + * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn: + * modules/stdalign: + Replace references to draft C1X to C11, and to draft C++0X to C++11. + +2012-01-06 Bruno Haible + + uc-is-grapheme-break tests: Tweak. + * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error + message. + +2012-01-06 Bruno Haible + + test-init.sh: correct the test for diff -u + * tests/test-init.sh: Also redirect stdout to /dev/null. + +2012-01-05 Paul Eggert + + Use ', not `, for quoting output. + * build-aux/announce-gen (usage, sizes, print_news_deltas) + (print_changelog_deltas, get_tool_versions, main program): + * build-aux/git-version-gen: + * build-aux/gitlog-to-changelog (usage, parse_amend_file): + * build-aux/move-if-change (help): + * build-aux/useless-if-before-free (usage, main program): + * check-module (parse_module_file, usage) + (find_included_lib_files, check_module): + * lib/argmatch.c (main) [TEST]: + * lib/argp-help.c (_help): + * lib/getopt1.c (main) [TEST]: + * lib/git-merge-changelog.c (usage): + * lib/xstrtol-error.c (xstrtol_error): + * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): + * m4/argz.m4 (gl_FUNC_ARGZ): + * m4/bison.m4 (gl_BISON): + * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): + * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): + * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): + * m4/fpending.m4 (gl_PREREQ_FPENDING): + * m4/gc-random.m4 (gl_GC_RANDOM): + * m4/intl.m4 (gt_CHECK_DECL): + * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): + * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT) + (AC_TYPE_UNSIGNED_LONG_LONG_INT): + * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): + * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): + * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE): + * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): + * tests/test-dirname.c (main): + * tests/test-getpass.c (main): + * tests/test-iconvme.c (main): + * tests/test-parse-datetime.c (LOG): + * tests/test-xstrtoimax.sh: + * tests/test-xstrtol.sh: + * tests/test-xstrtoll.sh: + * tests/test-xstrtoumax.sh: + * tests/unigbrk/test-uc-is-grapheme-break.c (main): + * top/GNUmakefile (abort-due-to-no-makefile): + Quote 'like this', not `like this', as per the recent change to + the GNU coding standards. + +2012-01-05 Bruno Haible + + strtoimax: Don't force a replacement on systems where intmax_t is int. + * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if + 'intmax_t' is not larger than 'int'. + Reported by Pádraig Brady . + +2012-01-05 Bruno Haible + + doc: Mention NetBSD bugs. + * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug. + * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug. + +2012-01-05 Bruno Haible + + strtoumax tests: Enhance tests. + * tests/test-strtoumax.c (main): Add tests for large values. + +2012-01-05 Bruno Haible + + strtoimax: Work around AIX 5.1 bug. + * lib/inttypes.in.h (strtoimax): Allow overriding the system's + definition. + * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug. + Set HAVE_STRTOIMAX. + * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize + REPLACE_STRTOIMAX. + * modules/inttypes-incomplete (Makefile.am): Substitute + REPLACE_STRTOIMAX. + * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4. + (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX. + (Depends-on): Update conditions. + * tests/test-strtoimax.c (main): Add tests for large values. + * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug. + +2012-01-05 Bruno Haible + + inttypes: Modernize. + * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms. + * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs. + (Makefile.am): Update inttypes.h rule. + +2012-01-05 Jim Meyering + + init.sh: don't waste a subshell just to redirect stderr + * tests/init.sh: In testing for diff -u and diff -c, use a + stderr-redirecting exec inside `...` rather than a subshell. + + test-init.sh: avoid failure on HP-UX 11.00 + * tests/test-init.sh: Skip "diff -u"-comparing step when compare + resolves to diff -c or cmp. Reported by Bruno Haible. + +2012-01-05 Bruno Haible + + Tests for module 'strtoull'. + * modules/strtoull-tests: New file. + * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c. + +2012-01-05 Bruno Haible + + Tests for module 'strtoll'. + * modules/strtoll-tests: New file. + * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c. + +2012-01-05 Bruno Haible + + Tests for module 'strtoul'. + * modules/strtoul-tests: New file. + * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c. + +2012-01-05 Bruno Haible + + Tests for module 'strtol'. + * modules/strtol-tests: New file. + * tests/test-strtol.c: New file, based on tests/test-strtoimax.c. + +2012-01-04 Jim Meyering + + test-init.sh: accommodate Solaris 5.10's different diff -u output + * tests/test-init.sh: Also exempt @@ lines from the comparison + of diff output, since Solaris 5.10 and GNU diff formats differ. + Reported by Stefano Lattarini. + 2012-01-04 Paul Eggert test-posixtm: don't assume signed integer wraparound