autoupdate
[gnulib.git] / ChangeLog
index 25cc808..3f6d793 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,431 @@
+2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+            Bruno Haible  <bruno@clisp.org>
+
+       Fix test-file-has-acl on FreeBSD.
+       * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
+       mask is implicitly added.
+       * tests/test-file-has-acl.c: Include <signal.h>.
+       (main): Terminate the test after 5 seconds.
+       * modules/acl-tests (configure.ac): Check for alarm function.
+
+2009-05-04  Bruno Haible  <bruno@clisp.org>
+
+       Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
+       * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
+       * modules/errno (configure.ac): Drop AC_REQUIRE.
+       * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
+       * modules/multiarch (configure.ac): Drop AC_REQUIRE.
+
+2009-05-04  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/glob-tests: New module.
+       * tests/test-glob.c: Add.
+
+2009-05-04  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/fnmatch-tests: New module.
+       * tests/test-fnmatch.c: Add.
+
+2009-05-04  Eric Blake  <ebb9@byu.net>
+
+       maint: make the new no-submodule-changes rule VPATH-safe
+       * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
+
+2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+            Bruno Haible  <bruno@clisp.org>
+
+       acl: Fix infinite loop on FreeBSD.
+       * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
+       of return value from acl_get_entry.
+       * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
+       Likewise.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       * lib/acl-internal.h (acl_entries): Clarify return value.
+       * lib/acl_entries.c (acl_entries): Likewise.
+
+2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+
+       Bug fix in acl module.
+       * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       Create gperf-generated file in the source dir, not in the build dir.
+       * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
+       iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
+       * modules/unicase/locale-language (unicase/locale-languages.h):
+       Likewise.
+       * modules/unicase/special-casing (unicase/special-casing-table.h):
+       Likewise.
+       * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
+       * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
+       * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
+       Reported by Ralf Wildenhues.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fnmatch (Description, configure.ac): Taken from
+       fnmatch-posix.
+       * modules/fnmatch-posix: Turn into a symbolic reference to the
+       'fnmatch' module, and deprecate.
+       * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
+       gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
+       Reported by Ralf Wildenhues.
+
+2009-05-04  Simon Josefsson  <simon@josefsson.org>
+
+       * m4/fnmatch.m4: Fix fnmatch re-define.
+
+2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+
+       priv-set: new module and tests; adapt write-any-file
+       * lib/priv-set.c: New file.
+       * lib/priv-set.h: New file.
+       * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
+       * lib/write-any-file.c: Simplify by using priv-set module.
+       * m4/priv-set.m4: New file.
+       * modules/priv-set: New file.
+       * modules/unlinkdir: Add dependency on priv-set module.
+       * modules/write-any-file: Likewise.
+
+       Tests for module 'priv-set'.
+       * modules/priv-set-tests: New file.
+       * tests/test-priv-set.c: New file.
+
+2009-05-03  Jim Meyering  <meyering@redhat.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       * lib/propername.c (proper_name_utf8): Ignore no-op translations;
+       use the converted UTF-8 variant of the name instead.
+
+2009-05-03  Jim Meyering  <meyering@redhat.com>
+
+       tests: tighten some getdate tests
+       * tests/test-getdate.c (main): Tighten tests: require equality,
+       not just greater than.  Set TZ envvar to UTC0.
+
+2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       getdate: correctly interpret "next monday" when run on a Monday
+       * lib/getdate.y (get_date): Correct the calculation of tm_mday so
+       that e.g., "next tues" (when run on a tuesday) results in a date
+       that is one week in the future, and not today's date.
+       I.e., add a week when the wday is the same as the current one.
+       Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
+       and earlier by Martin Bernreuther and Jan Minář.
+       * tests/test-getdate.c (main): Check that "next DAY" is always in
+       the future and that "last DAY" is always in the past.
+
+2009-05-02  Jim Meyering  <meyering@redhat.com>
+
+       build: ensure that a release build fails when a submodule is unclean
+       * top/maint.mk (no-submodule-changes): New rule.
+       (alpha beta major): Depend on it.
+
+2009-05-02  Bruno Haible  <bruno@clisp.org>
+
+       Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
+       * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
+       shell variable gl_fnmatch_required to detect which variant is
+       requested.
+       (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
+       gl_FUNC_FNMATCH_POSIX.
+       * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
+       exclude fnmatch-posix.
+
+2009-05-02  Bruno Haible  <bruno@clisp.org>
+
+       Relicense mbsrtowcs and strnlen1 under LGPLv2+.
+       * modules/mbsrtowcs (License): Change to LGPLv2+.
+       * modules/strnlen1 (License): Likewise.
+       Reported by Simon Josefsson.
+
+2009-05-02  Bruno Haible  <bruno@clisp.org>
+
+       * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
+       "cross".
+       (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
+       gnulib-tool was called with option --source-base=lib.
+
+2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Use automake *-local hooks without commands, for extensibility.
+       * modules/localcharset (Makefile.am): Rename install-exec-local
+       rule to install-exec-localcharset, and make it a prerequisite of
+       install-exec-local.  Likewise, rename the uninstall-local rule to
+       uninstall-localcharset, and make it a prerequisite of the former.
+
+2009-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
+       * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
+       set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
+       * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
+       * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
+       m4/locale-zh.m4, m4/codeset.m4.
+
+       * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
+       set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
+       * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
+       m4/locale-zh.m4.
+
+       * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
+       REPLACE_WCRTOMB if mbstate_t must be replaced.
+       * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
+       Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
+
+2009-05-01  Bruno Haible  <bruno@clisp.org>
+
+       Avoid compiler warnings when redefining macros defined by <libintl.h>.
+       * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
+       dngettext, dcngettext, textdomain, bindtextdomain,
+       bind_textdomain_codeset): Undefine before redefining.
+
+2009-04-30  Bruno Haible  <bruno@clisp.org>
+
+       Fix bug introduced on 2009-04-25.
+       * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
+       gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
+       * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
+       is defined.
+       * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
+       is defined.
+       * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
+       is defined.
+       Reported by Elbert_Pol <elbert.pol@gmail.com>.
+
+2009-04-28  Bruno Haible  <bruno@clisp.org>
+
+       Comment tweaks.
+       * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
+       * lib/uninorm.h (u*_normxfrm): Fix description of return value.
+       * lib/unicase.h (u*_casexfrm): Likewise.
+       Reported by Paolo Bonzini.
+
+2009-04-28  Bruno Haible  <bruno@clisp.org>
+
+       Fix a compilation error.
+       * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
+       * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
+       Reported by Jim Meyering.
+
+2009-04-27  Bruno Haible  <bruno@clisp.org>
+
+       New module 'libunistring'.
+       * modules/libunistring: New file.
+       * m4/libunistring.m4: New file.
+       * MODULES.html.sh (Unicode string functions): Add it.
+
+2009-04-27  Eric Blake  <ebb9@byu.net>
+
+       maint.mk: allow package-specific header to provide <config.h>
+       * top/maint.mk (sc_require_config_h): New variable.
+       (sc_require_config_h, sc_require_config_h_first): Use it.
+
+2009-04-27  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_avoid_if_before_free): Except
+       useless-if-before-free script.
+
+2009-04-27  Eric Blake  <ebb9@byu.net>
+
+       maintainer-makefile: depend on all required helper scripts
+       * modules/maintainer-makefile (Depends-on): Add vc-list-files and
+       useless-if-before-free.
+       * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
+       version, rather than assuming gnulib checkout is available.
+       Reported by Simen Josefsson.
+
+2009-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
+       "../" or "..".
+
+2009-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
+       * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
+       AC_LIB_HAVE_LINKFLAGS.
+
+2009-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Simplify calling convention of u*_conv_from_encoding.
+       * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
+       u32_conv_from_encoding): Expect a resultbuf argument and return the
+       result directly as a pointer.
+       * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
+       * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
+       * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
+       * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
+       * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
+       * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
+       Update.
+       * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
+       * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
+       * lib/vasnprintf.c (VASNPRINTF): Update.
+       * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
+       * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
+       * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
+       * NEWS: Mention the change.
+
+2009-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Simplify calling convention of u*_conv_to_encoding.
+       * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
+       u32_conv_to_encoding): Expect a resultbuf argument and return the
+       result directly as a pointer.
+       * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
+       * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
+       freeing scaled_offsets if mem_iconveha failed.
+       * lib/unicase/u-casexfrm.h (FUNC): Update.
+       * lib/uninorm/u-normxfrm.h (FUNC): Update.
+       * lib/vasnprintf.c (VASNPRINTF): Update.
+       * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
+       * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
+       * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
+       * NEWS: Mention the change.
+
+2009-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Avoid test failures on AIX and OSF/1.
+       * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
+       malloc(0).
+       * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
+       * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
+       Likewise.
+       * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
+       * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
+       * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
+       * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
+       * doc/posix-functions/malloc.texi: Document the portability problem
+       related to malloc(0).
+
+2009-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
+       * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
+       * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
+
+2009-04-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid link error when creating a namespace clean library.
+       * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
+       as macro with arguments if already defined as an alias.
+       * lib/signbitf.c (gl_signbitf): Don't undefine.
+       * lib/signbitd.c (gl_signbitd): Don't undefine.
+       * lib/signbitl.c (gl_signbitl): Don't undefine.
+
+2009-04-25  Jim Meyering  <meyering@redhat.com>
+
+       vc-list-files: fix another quoting bug
+       * build-aux/vc-list-files: Avoid sed backslash expansion
+       of pathological directory names.
+
+2009-04-25  Eric Blake  <ebb9@byu.net>
+
+       vc-list-files: fix shell quoting error
+       * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
+       timestamp.
+
+2009-04-25  Jim Meyering  <meyering@redhat.com>
+
+       vc-list-files: restore lost functionality with subdir argument
+       * build-aux/vc-list-files: When given a non-"." sub-directory
+       argument, substitute the $dir/ prefix back onto each resulting name.
+       Otherwise, coreutils' root_tests check would fail.
+
+2009-04-24  Eric Blake  <ebb9@byu.net>
+
+       vc-list-files: ignore git symlinks
+       * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
+       than ls-files, to ignore git symlinks.
+
+       maint.mk: import improvements from m4
+       * top/maint.mk (VC-tag): Use signing key from cfg.mk.
+       (move_if_change): Delete unused macro.
+       (news-date-check, vc-diff-check): Support VPATH builds.
+       (announcement): Likewise.  Split --bootstrap-tools list...
+       (boostrap-tools): ...into separate list, which can be overridden
+       in cfg.mk.
+       (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
+       requiring dependency on useless-if-before-free module.
+       (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
+       Support VPATH builds.
+
+2009-04-24  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: remove coreutils-specific rules and variables
+       * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
+       (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
+       (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
+
+       maint.mk: remove obsolete rule
+       * top/maint.mk (rel-check): Remove rule.
+       (WGET, WGETFLAGS): Remove now-unused variables.
+
+2009-04-24  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
+       consistency.
+
+       * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
+       '$(PATH_SEPARATOR)' instead of ':'.
+
+2009-04-24  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/getopt1.c (main): Use 'const' for static array.
+
+2009-04-24  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk: Sync with coreutils.
+       * NEWS: Explain incompatibilities.
+
+2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
+           Bruno Haible  <bruno@clisp.org>
+
+       Fix cross-compilation results.
+       * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
+       statement, as third argument of AC_TRY_RUN.
+       * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
+       gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
+       Likewise.
+       * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
+       * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
+       Likewise.
+       * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
+       * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
+       * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
+
+2009-04-20  Bruno Haible  <bruno@clisp.org>
+
+       Avoid test failure on mingw.
+       * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
+
+2009-04-20  Bruno Haible  <bruno@clisp.org>
+
+       Avoid compilation error on mingw.
+       * modules/localename-tests (Depends-on): Add locale.
+
+2009-04-19  Bruno Haible  <bruno@clisp.org>
+
+       Support for building a shared library on Windows platforms.
+       * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFC here.
+       * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFD here.
+       * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFKC here.
+       * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
+       (main): Test the presence of UNINORM_NFKD here.
+
 2009-04-19  Bruno Haible  <bruno@clisp.org>
 
        Avoid a compiler warning.