From a9e9697994a08600f5dbb46a1fe2a07233cb4890 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 4 Nov 1999 08:39:57 +0000 Subject: 19991104 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index fd8a447b05..8634dfe90c 100644 --- a/regex.c +++ b/regex.c @@ -1406,7 +1406,8 @@ re_compile_pattern(pattern, size, bufp) case 'W': for (c = 0; c < (1 << BYTEWIDTH); c++) { if (SYNTAX(c) != Sword && - (current_mbctype || SYNTAX(c) != Sword2)) + (current_mbctype && !re_mbctab[c] || + !current_mbctype && SYNTAX(c) != Sword2)) SET_LIST_BIT(c); } last = -1; -- cgit v1.2.3