diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-24 15:15:22 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-24 15:15:22 +0000 |
| commit | 31dddcd267efa8cece076323e407feb1fa9a0141 (patch) | |
| tree | b7de43ca8e17d39f18d78a1aa894d2616eb99975 | |
| parent | 10de170b0dd74c881fa83fac6150bbcb40fea264 (diff) | |
| download | ruby-31dddcd267efa8cece076323e407feb1fa9a0141.tar.gz ruby-31dddcd267efa8cece076323e407feb1fa9a0141.tar.xz ruby-31dddcd267efa8cece076323e407feb1fa9a0141.zip | |
* regex.c (re_compile_pattern): should check if c is not a
multibyte chracter. a patch from KIMURA Koichi
<kimura.koichi at canon.co.jp>. [ruby-dev:28598]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | ext/.document | 3 | ||||
| -rw-r--r-- | regex.c | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Tue Apr 25 00:08:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * regex.c (re_compile_pattern): should check if c is not a + multibyte chracter. a patch from KIMURA Koichi + <kimura.koichi at canon.co.jp>. [ruby-dev:28598] + Fri Apr 21 15:19:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/tcltklib.c (lib_eventloop_ensure): refer freed pointer diff --git a/ext/.document b/ext/.document index 263d40444..ba8182593 100644 --- a/ext/.document +++ b/ext/.document @@ -4,7 +4,8 @@ enumerator/enumerator.c iconv/iconv.c nkf/lib/kconv.rb nkf/nkf.c +socket/socket.c stringio/stringio.c strscan/strscan.c -zlib/zlib.c win32ole +zlib/zlib.c @@ -1705,7 +1705,7 @@ re_compile_pattern(pattern, size, bufp) goto range_retry; } else { - if (TRANSLATE_P()) c = (unsigned char)translate[c]; + if (TRANSLATE_P() && c < 0x100) c = (unsigned char)translate[c]; if (had_mbchar == 0 && (!current_mbctype || !had_num_literal)) { SET_LIST_BIT(c); had_num_literal = 0; |
