From 74e24f1698254f667302558ad35b2299ebbabb2d Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 29 Oct 2008 15:59:01 +0000 Subject: [PATCH] merged r19977 from trunk into ruby_1_9_1. * test_cgi_multipart.rb (_prepare): tempfile should be binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/cgi/test_cgi_multipart.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb index e77ecb254f..34f077e9c5 100755 --- a/test/cgi/test_cgi_multipart.rb +++ b/test/cgi/test_cgi_multipart.rb @@ -135,7 +135,7 @@ class CGIMultipartTest < Test::Unit::TestCase ENV['CONTENT_LENGTH'] = input.length.to_s ENV['REQUEST_METHOD'] = 'POST' ## set $stdin - tmpfile = Tempfile.new(self.name) + tmpfile = Tempfile.new(self.name, :binmode => true) tmpfile << input tmpfile.rewind() $stdin = tmpfile