From: Ulrich Drepper Date: Fri, 30 Jan 2004 05:22:32 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/fedora-base~865 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df759c2a218d1b52cfaf199b24e9f35dc93a3af4;p=thirdparty%2Fglibc.git Update. 2004-01-28 Paolo Bonzini Merge regex changes in gawk. * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity of collation elements. * posix/regex.c: Include limits.h. * posix/regex.h: Document REG_ECOLLATE correctly. * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS. --- diff --git a/ChangeLog b/ChangeLog index 9090135e8cc..ab0f4d695d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-01-28 Paolo Bonzini + + Merge regex changes in gawk. + * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity + of collation elements. + * posix/regex.c: Include limits.h. + * posix/regex.h: Document REG_ECOLLATE correctly. + * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS. + 2004-01-24 Andreas Jaeger * malloc/obstack.h: Import gnulib version. diff --git a/posix/regex.c b/posix/regex.c index 4c3826238bd..7a4f304cddc 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -74,6 +74,12 @@ /* POSIX says that must be included (by the caller) before . */ #include + +/* On some systems, limits.h sets RE_DUP_MAX to a lower value than + GNU regex allows. Include it before , which correctly + #undefs RE_DUP_MAX and sets it to the right value. */ +#include + #include #include "regex_internal.h" diff --git a/posix/regex.h b/posix/regex.h index c76005332de..b4a975b48b4 100644 --- a/posix/regex.h +++ b/posix/regex.h @@ -313,7 +313,7 @@ typedef enum /* POSIX regcomp return error codes. (In the order listed in the standard.) */ REG_BADPAT, /* Invalid pattern. */ - REG_ECOLLATE, /* Not implemented. */ + REG_ECOLLATE, /* Inalid collating element. */ REG_ECTYPE, /* Invalid character class name. */ REG_EESCAPE, /* Trailing backslash. */ REG_ESUBREG, /* Invalid back reference. */ diff --git a/posix/regex_internal.h b/posix/regex_internal.h index 7a7d964bd59..7ec72946924 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -23,7 +23,6 @@ #include #include -#include #include #include #include @@ -53,7 +52,7 @@ #endif /* This is for other GNU distributions with internationalized messages. */ -#if HAVE_LIBINTL_H || defined _LIBC +#if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC # include # ifdef _LIBC # undef gettext