ruby-changes:30352
From: usa <ko1@a...>
Date: Wed, 7 Aug 2013 16:39:40 +0900 (JST)
Subject: [ruby-changes:30352] usa:r42421 (trunk): * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server, test_cgi}):
usa 2013-08-07 16:39:23 +0900 (Wed, 07 Aug 2013) New Revision: 42421 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42421 Log: * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}): mswin is not only mswin32 but also mswin64. [Bug #8746] Modified files: trunk/ChangeLog trunk/test/webrick/test_cgi.rb _______________________________________________ ruby-cvs mailing list ruby-cvs@r... http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-cvs Index: ChangeLog =================================================================== --- ChangeLog (revision 42420) +++ ChangeLog (revision 42421) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Aug 7 16:34:30 2013 NAKAMURA Usaku <usa@r...> + + * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}): + mswin is not only mswin32 but also mswin64. + Wed Aug 7 16:19:12 2013 Koichi Sasada <ko1@a...> * cont.c (rb_fiber_start): use RARRAY_RAWPTR() instead of Index: test/webrick/test_cgi.rb =================================================================== --- test/webrick/test_cgi.rb (revision 42420) +++ test/webrick/test_cgi.rb (revision 42421) @@ -20,7 +20,7 @@ class TestWEBrickCGI < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/webrick/test_cgi.rb#L20 end }, } - if RUBY_PLATFORM =~ /mswin32|mingw|cygwin|bccwin32/ + if RUBY_PLATFORM =~ /mswin|mingw|cygwin|bccwin32/ config[:CGIPathEnv] = ENV['PATH'] # runtime dll may not be in system dir. end TestWEBrick.start_httpserver(config){|server, addr, port, log| @@ -40,7 +40,7 @@ class TestWEBrickCGI < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/webrick/test_cgi.rb#L40 req = Net::HTTP::Get.new("/webrick.cgi/%A4%DB%A4%B2/%A4%DB%A4%B2") # Path info of res.body is passed via ENV. # ENV[] returns different value on Windows depending on locale. - unless RUBY_PLATFORM =~ /mswin32|mingw|cygwin|bccwin32/ && + unless RUBY_PLATFORM =~ /mswin|mingw|cygwin|bccwin32/ && Encoding.find("locale") != Encoding.find("filesystem") http.request(req){|res| assert_equal("/\xA4\xDB\xA4\xB2/\xA4\xDB\xA4\xB2", res.body, log.call)} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/