changeset 90727:a664c8170666

(regex_compile): Synch with HEAD.
author Kenichi Handa <handa@m17n.org>
date Fri, 15 Dec 2006 01:33:37 +0000
parents 40b259875eae
children a65a92d83186
files src/regex.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Tue Dec 12 11:36:39 2006 +0000
+++ b/src/regex.c	Fri Dec 15 01:33:37 2006 +0000
@@ -2992,7 +2992,8 @@
 			  if (re_iswctype (btowc (ch), cc))
 			    {
 			      c = TRANSLATE (ch);
-			      SET_LIST_BIT (c);
+			      if (c < (1 << BYTEWIDTH))
+				SET_LIST_BIT (c);
 			    }
 
 			if (target_multibyte)