diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-22 18:44:48 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-22 18:44:48 +0000 |
commit | 506c6f52b950c131b305456cf72fe8f84a2a8f5f (patch) | |
tree | 5c3f01f7e8dc014ec2401bac825309234bd0e518 /test/stringio | |
parent | 7804656eb8252e223fce3b35da8a13c9f32392a9 (diff) | |
download | ruby-506c6f52b950c131b305456cf72fe8f84a2a8f5f.tar.gz |
Revert r45670 "stringio.c: use rb_str_append"
It breaks test-all.
http://u64b.rubyci.org/~chkbuild/ruby-trunk/log/20140422T143301Z.diff.html.gz
rb_str_conv_enc() return original string for example when
from ASCII-8BIT to UTF-8 with non ASCII strings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/stringio')
-rw-r--r-- | test/stringio/test_stringio.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index f4883455f6..c7db91aae1 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -119,17 +119,6 @@ class TestStringIO < Test::Unit::TestCase f.close unless f.closed? end - def test_write_infection - bug9769 = '[ruby-dev:48118] [Bug #9769]' - s = "".untaint - f = StringIO.new(s, "w") - f.print("bar".taint) - f.close - assert_predicate(s, :tainted?, bug9769) - ensure - f.close unless f.closed? - end - def test_mode_error f = StringIO.new("", "r") assert_raise(IOError) { f.write("foo") } |