]> git.eshelyaron.com Git - emacs.git/commitdiff
(regex_compile): Synch with HEAD.
authorKenichi Handa <handa@m17n.org>
Fri, 15 Dec 2006 01:33:37 +0000 (01:33 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 15 Dec 2006 01:33:37 +0000 (01:33 +0000)
src/regex.c

index b97ee7943fd6fd5927f3e37055ccfb0ec0431423..4b011634ae151742081f6c9c77e49d98f7c51c97 100644 (file)
@@ -2992,7 +2992,8 @@ regex_compile (pattern, size, syntax, bufp)
                          if (re_iswctype (btowc (ch), cc))
                            {
                              c = TRANSLATE (ch);
-                             SET_LIST_BIT (c);
+                             if (c < (1 << BYTEWIDTH))
+                               SET_LIST_BIT (c);
                            }
 
                        if (target_multibyte)