зеркало из https://github.com/github/ruby.git
* regparse.c (parse_char_class): CCV_SB is only for single
byte. [ruby-dev:36786] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e50a5bcef0
Коммит
5e7203ea22
|
@ -1,3 +1,8 @@
|
|||
Tue Oct 21 07:45:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* regparse.c (parse_char_class): CCV_SB is only for single
|
||||
byte. [ruby-dev:36786]
|
||||
|
||||
Tue Oct 21 01:49:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_extract_modeenc): plain rb/wb should set ASCII-8BIT
|
||||
|
|
|
@ -4218,6 +4218,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
|
|||
fetched = 0;
|
||||
switch (r) {
|
||||
case TK_CHAR:
|
||||
if (tok->u.code >= SINGLE_BYTE_SIZE) goto code_point;
|
||||
len = ONIGENC_CODE_TO_MBCLEN(env->enc, tok->u.c);
|
||||
if (len > 1) {
|
||||
in_type = CCV_CODE_POINT;
|
||||
|
@ -4291,6 +4292,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
|
|||
break;
|
||||
|
||||
case TK_CODE_POINT:
|
||||
code_point:
|
||||
v = tok->u.code;
|
||||
in_israw = 1;
|
||||
val_entry:
|
||||
|
|
Загрузка…
Ссылка в новой задаче