summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index de75bfd55c..3381cda8db 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -20,7 +20,7 @@ class TestIO < Test::Unit::TestCase
r.close
# "\377"
- r, w = IO.pipe
+ r, w = IO.pipe('ascii-8bit')
w.print "\377xyz"
w.close
r.binmode