diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-28 23:52:34 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-28 23:52:34 +0000 |
commit | 84e90deb0e42872da39691ca4262d6b33845daa9 (patch) | |
tree | 115fe429a01b2cbb17bf1aba9f6b1670363baa5d | |
parent | fe753f5fc3a744186e2ba7bf5baff38f503eedce (diff) | |
download | ruby-84e90deb0e42872da39691ca4262d6b33845daa9.tar.gz |
* test/ruby/test_exception.rb (TestException#test_output_string_encoding): need
to specify the encoding of script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_exception.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index f5e1179af7..b265b5951e 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -677,7 +677,8 @@ end.join def test_output_string_encoding # "\x82\xa0" in cp932 is "\u3042" (Japanese hiragana 'a') # change $stderr to force calling rb_io_write() instead of fwrite() - assert_in_out_err(["-Eutf-8:cp932"], '$stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| +assert_in_out_err(["-Eutf-8:cp932"], '# coding: cp932 +$stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| assert_equal 1, outs.size assert_equal 0, errs.size err = outs.first.force_encoding('utf-8') |