1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):

always must be binary mode.  c.f. Bug#2341


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-12-23 00:12:33 +00:00
parent 833afaa2cc
commit da861d79b7
3 changed files with 9 additions and 7 deletions

View file

@ -1,3 +1,8 @@
Wed Dec 23 09:12:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):
always must be binary mode. c.f. Bug#2341
Thu Dec 10 09:20:58 2009 NARUSE, Yui <naruse@ruby-lang.org>
* encoding.c (Init_Encoding): undef Encoding.new because

View file

@ -135,11 +135,8 @@ class CGIMultipartTest < Test::Unit::TestCase
ENV['CONTENT_LENGTH'] = input.length.to_s
ENV['REQUEST_METHOD'] = 'POST'
## set $stdin
tmpfile = if RUBY_VERSION >="1.9"
Tempfile.new('test_cgi_multipart', :binmode => true)
else
Tempfile.new('test_cgi_multipart')
end
tmpfile = Tempfile.new('test_cgi_multipart')
tmpfile.binmode
tmpfile << input
tmpfile.rewind()
$stdin = tmpfile

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_RELEASE_DATE "2009-12-22"
#define RUBY_RELEASE_DATE "2009-12-23"
#define RUBY_PATCHLEVEL -1
#define RUBY_BRANCH_NAME "trunk"
@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 12
#define RUBY_RELEASE_DAY 22
#define RUBY_RELEASE_DAY 23
#include "ruby/version.h"