diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-13 06:06:12 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-13 06:06:12 +0000 |
commit | d453b1a042a4483e74b17d66c7d88ec0c60b964a (patch) | |
tree | d7002843f9d61ce16600dc630e01fcb8b6c8845c /re.c | |
parent | 4af06a86de87b9f12751fb155d10c1f9e453097a (diff) |
signal to main_thread
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -147,7 +147,7 @@ kcode_set_option(reg) mbcinit(MBCTYPE_EUC); break; case KCODE_SJIS: - mbcinit(MBCTYPE_EUC); + mbcinit(MBCTYPE_SJIS); break; } } @@ -883,6 +883,10 @@ reg_regsub(str, src, regs) char *ss = s; c = *s++; + if (ismbchar(c)) { + s++; + continue; + } if (c != '\\' || s == e) continue; if (!val) val = str_new(p, ss-p); |