ruby-changes:15012
From: naruse <ko1@a...>
Date: Fri, 12 Mar 2010 17:48:47 +0900 (JST)
Subject: [ruby-changes:15012] Ruby:r26887 (trunk): * lib/webrick/httpservlet/cgihandler.rb
naruse 2010-03-12 17:48:10 +0900 (Fri, 12 Mar 2010) New Revision: 26887 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26887 Log: * lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler#do_GET): set binary mode for tempfile. http://pc12.2ch.net/test/read.cgi/tech/1265467681/286 Modified files: trunk/ChangeLog trunk/lib/webrick/httpservlet/cgihandler.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 26886) +++ ChangeLog (revision 26887) @@ -1,3 +1,10 @@ +Fri Mar 12 17:36:35 2010 NARUSE, Yui <naruse@r...> + + * lib/webrick/httpservlet/cgihandler.rb + (WEBrick::HTTPServlet::CGIHandler#do_GET): + set binary mode for tempfile. + http://pc12.2ch.net/test/read.cgi/tech/1265467681/286 + Fri Mar 12 13:52:00 2010 Kenta Murata <mrkn@m...> * tool/compile_prelude.rb: TMP_RUBY_PREFIX should replace Index: lib/webrick/httpservlet/cgihandler.rb =================================================================== --- lib/webrick/httpservlet/cgihandler.rb (revision 26886) +++ lib/webrick/httpservlet/cgihandler.rb (revision 26887) @@ -32,9 +32,9 @@ status = -1 cgi_in = IO::popen(@cgicmd, "wb") - cgi_out = Tempfile.new("webrick.cgiout.", @tempdir) + cgi_out = Tempfile.new("webrick.cgiout.", @tempdir, mode: IO::BINARY) cgi_out.set_encoding("ASCII-8BIT") - cgi_err = Tempfile.new("webrick.cgierr.", @tempdir) + cgi_err = Tempfile.new("webrick.cgierr.", @tempdir, mode: IO::BINARY) cgi_err.set_encoding("ASCII-8BIT") begin cgi_in.sync = true -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/