summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-15 07:08:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-15 07:08:12 +0000
commit443b1517cfbee8cf3a0c44f040939edf4f94b9a0 (patch)
tree578f56eec5a5e56a5a7025147994631ea72eed31 /test
parent7da18cf1a25a373285eab1e317d8439713cd0d89 (diff)
* string.c (rb_enc_cr_str_buf_cat): remove special treatment of
ASCII-8BIT receivers. * string.c (str_gsub): set initial encoding of the buffer as the same of the receiver. [ruby-core:35141] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_m17n.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index 799e46073c..c8d2d0116c 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -1098,8 +1098,8 @@ class TestM17N < Test::Unit::TestCase
s = e("\xa3\xb0\xa3\xb1\xa3\xb2\xa3\xb3\xa3\xb4")
assert_equal(e("\xa3\xb0z\xa3\xb2\xa3\xb3\xa3\xb4"), s.gsub(/\xa3\xb1/e, "z"))
- assert_equal(Encoding::EUC_JP, (a("").gsub(//) { e("") }.encoding))
- assert_equal(Encoding::EUC_JP, (a("a").gsub(/a/) { e("") }.encoding))
+ assert_equal(Encoding::ASCII_8BIT, (a("").gsub(//) { e("") }.encoding))
+ assert_equal(Encoding::ASCII_8BIT, (a("a").gsub(/a/) { e("") }.encoding))
end
def test_end_with