diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-09-01 02:53:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-09-01 02:53:53 +0000 |
commit | 264c52f2e6abc33f09e6a891f67bdf7bddbae406 (patch) | |
tree | 241a384494c8b7c8a423040a46372af505d97d9d /regex.c | |
parent | de11b8dc8a567f0dcb3961d4e712d63df97eaabb (diff) |
euc-kana
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1059,6 +1059,7 @@ re_compile_pattern(pattern, size, bufp) int options = bufp->options; bufp->fastmap_accurate = 0; + bufp->must = 0; /* Initialize the syntax table. */ init_syntax_once(); @@ -2222,8 +2223,7 @@ must_instr(little, llen, big, blen, translate) c = *little; if (c == 0xff) { - c = *++little; - llen--; + c = little[1]; fescape = 1; } else if (translate && !ismbchar(c)) { @@ -4199,7 +4199,7 @@ static const unsigned char mbctab_euc[] = { /* 0xA1-0xFE */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |