summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 13:18:44 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 13:18:44 +0000
commit6338a3a4a4c0d8b37a07545421a425027c85f651 (patch)
tree6ec14089f77879ee990e34121aa13280169d3b6b /test/ruby/test_rubyoptions.rb
parent4c02456b3db04e8cdbe62a7bdaf9c3b49b15d3ef (diff)
Set an encoding for SEGV message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 8539835f75..45a1612697 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -556,6 +556,7 @@ class TestRubyOptions < Test::Unit::TestCase
opt = SEGVTest::ExecOptions.dup
_, stderr, status = EnvUtil.invoke_ruby(args, test_stdin, false, true, **opt)
+ stderr.force_encoding("ASCII-8BIT")
if signo = status.termsig
sleep 0.1