regex: replace mbrtowc with __mbrtowc.
[gnulib.git] / ChangeLog
index c320655..2059b03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,331 @@
+2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
+
+       regex: merge glibc changes
+       * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
+       * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
+       re_string_skip_chars, re_string_reconstruct): Likewise.
+       * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
+
+2009-01-07  Jim Meyering  <meyering@redhat.com>
+
+       poll: filter through cppi
+       * lib/poll.c: Indent cpp directives to reflect nesting.
+
+2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
+
+       poll: don't return uninitialized
+       * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
+
+2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
+
+       avoid compile failure on AIX 6.1
+       * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
+       Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
+
+2009-01-04  Jim Meyering  <meyering@redhat.com>
+
+       remove duplicate inclusion of <stdio.h>
+       * tests/test-fprintf-posix.c: Likewise.
+       * tests/test-printf-posix.c: Likewise.
+       * tests/test-snprintf-posix.c: Likewise.
+       * tests/test-sprintf-posix.c: Likewise.
+       * tests/test-vasprintf-posix.c: Likewise.
+       * tests/test-vfprintf-posix.c: Likewise.
+       * tests/test-vprintf-posix.c: Likewise.
+       * tests/test-vsnprintf-posix.c: Likewise.
+       * tests/test-vsprintf-posix.c: Likewise.
+
+2009-01-03  Jim Meyering  <meyering@redhat.com>
+
+       gnulib-tool: fix sed-based filtering
+       * gnulib-tool (func_filter_filelist): Remove extra backslash
+       in sed_fff_filter definition.
+
+2009-01-02  Jim Meyering  <meyering@redhat.com>
+
+       strftime: avoid compilation failure on Solaris 2.6
+       * modules/strftime (Depends-on): Add mbrlen and mbsinit.
+       * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
+       Don't #define mbrlen or mbsinit, since now they're guaranteed to
+       be available.  Reported by Tom G. Christensen.  Details in
+       <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
+
+2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+           Bruno Haible  <bruno@clisp.org>
+
+       Speed up gnulib-tool by doing more string processing through shell
+       built-ins.
+       * gnulib-tool (fast_func_append): New variable.
+       (func_remove_prefix, func_remove_suffix): New functions.
+       (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
+       (func_filter_filelist): New function.
+       (func_get_dependencies): Use func_remove_suffix instead of sed.
+       (func_get_automake_snippet): Use func_filter_filelist instead of a
+       subshell and sed invocation.
+
+2009-01-01  Bruno Haible  <bruno@clisp.org>
+
+       Fix a security bug.
+       * gnulib-tool (func_import, import, update): Don't allow the characters
+       '"', '$', '`', '\' in macro arguments that become part of commands that
+       are evaluated.
+
+2009-01-01  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_reset_sigpipe): Add more comments.
+
+2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
+       func_emit_tests_Makefile_am, func_import): Abort loops early if we
+       already know the answer.
+
+2009-01-01  Jim Meyering  <meyering@redhat.com>
+
+       * lib/version-etc.c (version_etc_va): Update copyright year.
+
+2008-12-30  Bruno Haible  <bruno@clisp.org>
+
+       * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
+       LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
+       Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
+
+2008-12-29  Eric Blake  <ebb9@byu.net>
+
+       multiarch: avoid autoconf AC_REQUIRE bug
+       * m4/multiarch.m4 (gl_MULTIARCH): Split body...
+       (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
+       2.63 and older.
+       Reported by Bruno Haible, and analyzed in
+       http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
+
+2008-12-29  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): When generating sed-ignore-removed, handle
+       files in subdirectories correctly.
+       Reported by Ralf Wildenhues.
+
+2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
+       rather than 'join FILE -', for Solaris join.
+
+2008-12-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
+       quoting.
+       * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
+       * m4/glibc2.m4 (gt_GLIBC2): Likewise.
+       * m4/glibc21.m4 (gl_GLIBC21): Likewise.
+       * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
+       * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
+       * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
+       * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
+       * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
+       * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
+       * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
+       * m4/nls.m4 (AM_NLS): Likewise.
+       * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
+       * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
+       * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
+       * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
+       * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
+       * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
+       * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
+       * m4/visibility.m4 (gl_VISIBILITY): Likewise.
+       * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
+       * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
+       * m4/xsize.m4 (gl_XSIZE): Likewise.
+       Suggested by Jim Meyering.
+
+2008-11-17  Bruce Korb  <bkorb@gnu.org>
+
+       * lib/parse-duration.h: non-iso form accepts years, months weeks, too
+       * lib/parse-duration.c: use a switch instead of cascading if's.
+
+2008-12-29  Eric Blake  <ebb9@byu.net>
+
+       wchar.h: supply WEOF on Irix 5.3
+       * lib/wchar.in.h (wint_t): Also supply WEOF.
+       * lib/wctype.in.h (wint_t): Likewise.
+       * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
+       * doc/posix-headers/wctype.texi (wctype.h): Likewise.
+       Reported by Tom G. Christensen.
+
+2008-12-26  Bruno Haible  <bruno@clisp.org>
+
+       * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
+       i486, i586, i686.
+
+2008-12-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
+
+2008-12-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdint.in.h: Move the include of <wchar.h> down until after all
+       the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
+       not __STDC_CONSTANT_MACROS.
+       Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
+
+2008-12-25  Bruno Haible  <bruno@clisp.org>
+
+       Add support for universal builds to vasnprintf.
+       * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
+       universal builds, guess no.
+       * modules/vasnprintf-posix (Depends-on): Add multiarch.
+       * modules/vasprintf-posix (Depends-on): Likewise.
+       * modules/fprintf-posix (Depends-on): Likewise.
+       * modules/vfprintf-posix (Depends-on): Likewise.
+       * modules/snprintf-posix (Depends-on): Likewise.
+       * modules/vsnprintf-posix (Depends-on): Likewise.
+       * modules/sprintf-posix (Depends-on): Likewise.
+       * modules/vsprintf-posix (Depends-on): Likewise.
+       * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
+
+       Add support for universal builds to <inttypes.h>.
+       * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
+       _SCNu64_PREFIX): In Apple
+       universal builds, define directly, using _LP64.
+       * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
+       INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
+       * modules/inttypes (Depends-on): Add multiarch.
+       (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
+
+       Add support for universal builds to <stdint.h>.
+       * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
+       universal builds, define directly, using _LP64.
+       * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
+       Apple universal builds, don't test for the size and suffix of ptrdiff_t
+       and size_t.
+       * modules/stdint (Depends-on): Add multiarch.
+       (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
+
+       New module 'multiarch'.
+       * modules/multiarch: New file.
+       * m4/multiarch.m4: New file.
+
+2008-12-25  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_create_testdir): Avoid failure of mv command.
+
+2008-12-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/btowc (License): Relicense under LGPLv2+.
+       * modules/mbsinit (License): Likewise.
+       * modules/mbrtowc (License): Likewise.
+       * modules/wcrtomb (License): Likewise.
+       * modules/streq (License): Likewise.
+       Reported by David Lutterkort <lutter@redhat.com>.
+
+2008-12-23  Bruno Haible  <bruno@clisp.org>
+
+       * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
+
+2008-12-23  Bruno Haible  <bruno@clisp.org>
+
+       Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
+       * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
+       GETADDRINFO_LIB, not in LIBS.
+       * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
+       * modules/canon-host (Link): Likewise.
+       * NEWS: Mention the change.
+       * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
+       GETADDRINFO_LIB.
+
+2008-12-22  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
+       * doc/posix-functions/iswalpha_l.texi: Likewise.
+       * doc/posix-functions/iswblank_l.texi: Likewise.
+       * doc/posix-functions/iswcntrl_l.texi: Likewise.
+       * doc/posix-functions/iswctype_l.texi: Likewise.
+       * doc/posix-functions/iswdigit_l.texi: Likewise.
+       * doc/posix-functions/iswgraph_l.texi: Likewise.
+       * doc/posix-functions/iswlower_l.texi: Likewise.
+       * doc/posix-functions/iswprint_l.texi: Likewise.
+       * doc/posix-functions/iswpunct_l.texi: Likewise.
+       * doc/posix-functions/iswspace_l.texi: Likewise.
+       * doc/posix-functions/iswupper_l.texi: Likewise.
+       * doc/posix-functions/iswxdigit_l.texi: Likewise.
+       * doc/posix-functions/mbsnrtowcs.texi: Likewise.
+       * doc/posix-functions/open_wmemstream.texi: Likewise.
+       * doc/posix-functions/swscanf.texi: Likewise.
+       * doc/posix-functions/towctrans_l.texi: Likewise.
+       * doc/posix-functions/towlower.texi: Likewise.
+       * doc/posix-functions/towlower_l.texi: Likewise.
+       * doc/posix-functions/towupper.texi: Likewise.
+       * doc/posix-functions/towupper_l.texi: Likewise.
+       * doc/posix-functions/vfwprintf.texi: Likewise.
+       * doc/posix-functions/vfwscanf.texi: Likewise.
+       * doc/posix-functions/vswscanf.texi: Likewise.
+       * doc/posix-functions/vwprintf.texi: Likewise.
+       * doc/posix-functions/vwscanf.texi: Likewise.
+       * doc/posix-functions/wcpcpy.texi: Likewise.
+       * doc/posix-functions/wcpncpy.texi: Likewise.
+       * doc/posix-functions/wcscasecmp.texi: Likewise.
+       * doc/posix-functions/wcscasecmp_l.texi: Likewise.
+       * doc/posix-functions/wcscoll_l.texi: Likewise.
+       * doc/posix-functions/wcsdup.texi: Likewise.
+       * doc/posix-functions/wcsncasecmp.texi: Likewise.
+       * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
+       * doc/posix-functions/wcsnlen.texi: Likewise.
+       * doc/posix-functions/wcsnrtombs.texi: Likewise.
+       * doc/posix-functions/wcsxfrm_l.texi: Likewise.
+       * doc/posix-functions/wctrans_l.texi: Likewise.
+       * doc/posix-functions/wctype_l.texi: Likewise.
+       * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
+       * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
+       * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
+       * doc/glibc-functions/fputws_unlocked.texi: Likewise.
+       * doc/glibc-functions/getwc_unlocked.texi: Likewise.
+       * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
+       * doc/glibc-functions/putwc_unlocked.texi: Likewise.
+       * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
+       * doc/glibc-functions/wcschrnul.texi: Likewise.
+       * doc/glibc-functions/wcsftime_l.texi: Likewise.
+       * doc/glibc-functions/wcstod_l.texi: Likewise.
+       * doc/glibc-functions/wcstof_l.texi: Likewise.
+       * doc/glibc-functions/wcstol_l.texi: Likewise.
+       * doc/glibc-functions/wcstold_l.texi: Likewise.
+       * doc/glibc-functions/wcstoll_l.texi: Likewise.
+       * doc/glibc-functions/wcstoq.texi: Likewise.
+       * doc/glibc-functions/wcstoul_l.texi: Likewise.
+       * doc/glibc-functions/wcstoull_l.texi: Likewise.
+       * doc/glibc-functions/wcstouq.texi: Likewise.
+       * doc/glibc-functions/wmempcpy.texi: Likewise.
+
+2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
+           Eric Blake  <ebb9@byu.net>
+           Paolo Bonzini  <bonzini@gnu.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       Make c-stack work on Haiku.
+       * lib/c-stack.c (SA_ONSTACK): Define fallback.
+       (c_stack_action): Use SA_ONSTACK flag.
+
+2008-12-22  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
+
+2008-12-22  Bruno Haible  <bruno@clisp.org>
+
+       Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
+       * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
+       being overridden.
+       (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
+       New macros.
+       * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
+       * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
+       * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
+
 2008-12-22  Bruno Haible  <bruno@clisp.org>
 
        * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
        coding: utf-8
        End:
 
-       Copyright (C) 1997-2008 Free Software Foundation, Inc.
+       Copyright (C) 1997-2009 Free Software Foundation, Inc.
 
        Copying and distribution of this file, with or without
        modification, are permitted provided the copyright notice