mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d23b7958c5
commit
b068b82ca1
3 changed files with 9 additions and 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
|
||||
|
|
|
@ -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
|
||||
|
|
2
regex.c
2
regex.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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue