diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-24 09:15:03 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-24 09:15:03 +0000 |
| commit | 625f322337c96d42a14ef34f1a14a5bc762ca451 (patch) | |
| tree | e1fd6a6ad0365afdef851bc1b7bc4bfb619b5e15 | |
| parent | 5cb78b5c44aee3c8069f455a35f8cb45fb4c96eb (diff) | |
| download | ruby-625f322337c96d42a14ef34f1a14a5bc762ca451.tar.gz ruby-625f322337c96d42a14ef34f1a14a5bc762ca451.tar.xz ruby-625f322337c96d42a14ef34f1a14a5bc762ca451.zip | |
* re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | re.c | 2 |
2 files changed, 5 insertions, 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. @@ -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; |
