mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fbe52683e6
commit
b1257d4d20
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Jan 24 18:14:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially.
|
||||
|
||||
Thu Jan 24 16:53:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* re.c (rb_reg_initialize): 7bit clean regexp should be US-ASCII.
|
||||
|
|
2
re.c
2
re.c
|
@ -931,7 +931,7 @@ rb_match_busy(VALUE match)
|
|||
static VALUE
|
||||
rb_reg_fixed_encoding_p(VALUE re)
|
||||
{
|
||||
if (!ENCODING_IS_ASCII8BIT(re) || FL_TEST(re, KCODE_FIXED))
|
||||
if (FL_TEST(re, KCODE_FIXED))
|
||||
return Qtrue;
|
||||
else
|
||||
return Qfalse;
|
||||
|
|
Loading…
Reference in a new issue