mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-20 19:42:53 -08:00
(regex_compile): Don't call SET_LIST_BIT with a
multibyte character.
This commit is contained in:
parent
2b8d847455
commit
6358f8b2bf
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-11-28 Kenichi Handa <handa@m17n.org>
|
||||
|
||||
* regex.c (regex_compile): Don't call SET_LIST_BIT with a
|
||||
multibyte character.
|
||||
|
||||
2006-11-27 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue