regex: Fix fastmap for multibyte character ranges.
[gnulib.git] / ChangeLog
index 9f8d4ef..54c5514 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,168 @@
+2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
+
+       regex: Fix fastmap for multibyte character ranges.
+       * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
+       characters when a multibyte character range is included.
+
+2009-11-22  Andy Wingo  <wingo@pobox.com>
+
+       version-etc: work also with AM_INIT_AUTOMAKE's no-define option
+       * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       doc: Most *_l functions exist in MacOS X 10.5.
+       * doc/posix-functions/duplocale.texi: Update platforms list.
+       * doc/posix-functions/freelocale.texi: Likewise.
+       * doc/posix-functions/newlocale.texi: Likewise.
+       * doc/posix-functions/uselocale.texi: Likewise.
+       * doc/posix-functions/isalnum_l.texi: Likewise.
+       * doc/posix-functions/isalpha_l.texi: Likewise.
+       * doc/posix-functions/isblank_l.texi: Likewise.
+       * doc/posix-functions/iscntrl_l.texi: Likewise.
+       * doc/posix-functions/isdigit_l.texi: Likewise.
+       * doc/posix-functions/isgraph_l.texi: Likewise.
+       * doc/posix-functions/islower_l.texi: Likewise.
+       * doc/posix-functions/isprint_l.texi: Likewise.
+       * doc/posix-functions/ispunct_l.texi: Likewise.
+       * doc/posix-functions/isspace_l.texi: Likewise.
+       * doc/posix-functions/isupper_l.texi: Likewise.
+       * doc/posix-functions/iswalnum_l.texi: Likewise.
+       * 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/isxdigit_l.texi: Likewise.
+       * doc/posix-functions/nl_langinfo_l.texi: Likewise.
+       * doc/posix-functions/strcasecmp_l.texi: Likewise.
+       * doc/posix-functions/strcoll_l.texi: Likewise.
+       * doc/posix-functions/strfmon_l.texi: Likewise.
+       * doc/posix-functions/strftime_l.texi: Likewise.
+       * doc/posix-functions/strncasecmp_l.texi: Likewise.
+       * doc/posix-functions/strxfrm_l.texi: Likewise.
+       * doc/posix-functions/tolower_l.texi: Likewise.
+       * doc/posix-functions/toupper_l.texi: Likewise.
+       * doc/posix-functions/towctrans_l.texi: Likewise.
+       * doc/posix-functions/towlower_l.texi: Likewise.
+       * doc/posix-functions/towupper_l.texi: Likewise.
+       * doc/posix-functions/wcscoll_l.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/strptime_l.texi: Likewise.
+       * doc/glibc-functions/strtod_l.texi: Likewise.
+       * doc/glibc-functions/strtof_l.texi: Likewise.
+       * doc/glibc-functions/strtol_l.texi: Likewise.
+       * doc/glibc-functions/strtold_l.texi: Likewise.
+       * doc/glibc-functions/strtoll_l.texi: Likewise.
+       * doc/glibc-functions/strtoul_l.texi: Likewise.
+       * doc/glibc-functions/strtoull_l.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/wcstoul_l.texi: Likewise.
+       * doc/glibc-functions/wcstoull_l.texi: Likewise.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Fix logic bug.
+       * lib/duplocale.c: Don't include <langinfo.h>.
+       (_NL_LOCALE_NAME): Remove macro.
+       (rpl_duplocale): Use setlocale instead of nl_langinfo.
+       * tests/test-duplocale.c (main): Also test duplocale after uselocale.
+
+2009-11-23  Jim Meyering  <meyering@redhat.com>
+
+       test-update-copyright: don't hard-code /usr/bin/perl
+       * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
+       perl to print the current year.  Gilles Espinasse reported that
+       the replaced use of perl was hard-coded as /usr/bin/perl.
+
+2009-11-23  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Add support for glibc 2.3.x.
+       * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Tiny optimization.
+       * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
+       MacOS X.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'duplocale'.
+       * modules/duplocale-tests: New file.
+       * tests/test-duplocale.c: New file.
+
+       New module 'duplocale'.
+       * m4/duplocale.m4: New file.
+       * lib/locale.in.h (duplocale): New declaration.
+       * lib/duplocale.c: New file.
+       * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
+       gl_LOCALE_H_DEFAULTS): New macros.
+       (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
+       gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
+       * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
+       REPLACE_DUPLOCALE.
+       * modules/duplocale: New file.
+       * doc/posix-functions/duplocale.texi: Mention the glibc bug.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       * modules/locale-tests (configure.ac): Test for newlocale function.
+       * tests/test-locale.c: When the system has extended locale functions,
+       verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
+
+       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".