diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2007-02-15 00:16:55 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2007-02-15 00:16:55 +0000 |
commit | dea6f7089df0538e8bc7971dfbdd84e523a79d2a (patch) | |
tree | 814bdaad7d7c52f72f7d68b281a953f274e62ea1 /modules | |
parent | 1f206dea091773e255cd7d3c00069e61bb6af7c0 (diff) | |
download | gnulib-dea6f7089df0538e8bc7971dfbdd84e523a79d2a.tar.gz |
Fix regex code so it doesn't rely on strcasecmp.
* lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
Otherwise, include gnulib's langinfo.h.
* lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
undesirable behavior in non-C locales. Instead, rely on locale_charset.
* m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
* modules/regex (FILES): Remove m4/codeset.m4.
(Depends-on): Add localcharset. Remove strcase.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/regex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/regex b/modules/regex index 3f94248d46..a1a681160b 100644 --- a/modules/regex +++ b/modules/regex @@ -8,17 +8,16 @@ lib/regex_internal.c lib/regex_internal.h lib/regexec.c lib/regcomp.c -m4/codeset.m4 m4/regex.m4 Depends-on: alloca extensions gettext-h +localcharset malloc stdbool stdint -strcase ssize_t wchar wctype |