ruby-changes:8445
From: usa <ko1@a...>
Date: Tue, 28 Oct 2008 11:44:20 +0900 (JST)
Subject: [ruby-changes:8445] Ruby:r19977 (trunk): * test_cgi_multipart.rb (_prepare): tempfile should be binmode.
usa 2008-10-28 11:44:09 +0900 (Tue, 28 Oct 2008) New Revision: 19977 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19977 Log: * test_cgi_multipart.rb (_prepare): tempfile should be binmode. Modified files: trunk/test/cgi/test_cgi_multipart.rb Index: test/cgi/test_cgi_multipart.rb =================================================================== --- test/cgi/test_cgi_multipart.rb (revision 19976) +++ test/cgi/test_cgi_multipart.rb (revision 19977) @@ -135,7 +135,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/