From ed00c2ac8337ed5ec9485a69e67f37d2909a84dc Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 15 Dec 2006 01:33:37 +0000 Subject: [PATCH] (regex_compile): Synch with HEAD. --- src/regex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/regex.c b/src/regex.c index b97ee7943fd..4b011634ae1 100644 --- a/src/regex.c +++ b/src/regex.c @@ -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) -- 2.39.5