Fix regex code so it doesn't rely on strcasecmp.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Feb 2007 00:16:55 +0000 (00:16 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Feb 2007 00:16:55 +0000 (00:16 +0000)
commitdea6f7089df0538e8bc7971dfbdd84e523a79d2a
tree814bdaad7d7c52f72f7d68b281a953f274e62ea1
parent1f206dea091773e255cd7d3c00069e61bb6af7c0
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.
ChangeLog
lib/regcomp.c
lib/regex_internal.h
m4/regex.m4
modules/regex