From fbf1b1ead9323a7f5909f483c137c46f65d3f68c Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 4 Nov 1999 08:39:57 +0000 Subject: 19991104 git-svn-id: http://svn.ruby-lang.org/repos/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 fd8a447b0..8634dfe90 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