From: Kenichi Handa Date: Tue, 28 Nov 2006 01:10:42 +0000 (+0000) Subject: (regex_compile): Don't call SET_LIST_BIT with a X-Git-Tag: emacs-pretest-22.0.92~431 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6358f8b2bf2f524f5682bea945e4f7f70a4ecfa4;p=emacs.git (regex_compile): Don't call SET_LIST_BIT with a multibyte character. --- diff --git a/src/ChangeLog b/src/ChangeLog index f5b2efdf269..3d3e844d599 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-11-28 Kenichi Handa + + * regex.c (regex_compile): Don't call SET_LIST_BIT with a + multibyte character. + 2006-11-27 Chong Yidong * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler. diff --git a/src/regex.c b/src/regex.c index 32991346399..7967a481ae9 100644 --- a/src/regex.c +++ b/src/regex.c @@ -2939,7 +2939,8 @@ regex_compile (pattern, size, syntax, bufp) for (ch = 0; ch < 1 << BYTEWIDTH; ++ch) { int translated = TRANSLATE (ch); - if (re_iswctype (btowc (ch), cc)) + if (translate < 1 << BYTEWIDTH + && re_iswctype (btowc (ch), cc)) SET_LIST_BIT (translated); }