summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-11-04 08:39:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-11-04 08:39:57 +0000
commitfbf1b1ead9323a7f5909f483c137c46f65d3f68c (patch)
tree9976842c343a888dc34f5cc53ecedc5abb358669 /regex.c
parent9868574ae43c0fdc49a9d3fc0431bb0613507bfa (diff)
downloadruby-fbf1b1ead9323a7f5909f483c137c46f65d3f68c.tar.gz
ruby-fbf1b1ead9323a7f5909f483c137c46f65d3f68c.tar.xz
ruby-fbf1b1ead9323a7f5909f483c137c46f65d3f68c.zip
19991104
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c3
1 files changed, 2 insertions, 1 deletions
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;