From b1257d4d209ea46b249e6e714f64b47dd912c968 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 24 Jan 2008 09:15:03 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ re.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2606aa3875..67b0fbce0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 24 18:14:14 2008 NAKAMURA Usaku + + * re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially. + Thu Jan 24 16:53:06 2008 NAKAMURA Usaku * re.c (rb_reg_initialize): 7bit clean regexp should be US-ASCII. diff --git a/re.c b/re.c index 562c151c7c..dced068d98 100644 --- a/re.c +++ b/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;