Issue #3797 has been updated by Takeyuki Fujioka.

Status changed from Assigned to Rejected

????????????????紊??????????障?????с??1.8膤祉?с?篆罩c?????????????????障????????
----------------------------------------
Bug #3797: cgi???????<?若?帥??String??????緇??????????????????
http://redmine.ruby-lang.org/issues/3797

Author: Takeyuki Fujioka
Status: Rejected
Priority: Normal
Assignee: Takeyuki Fujioka
Category: lib
Target version: Ruby 1.8.7
ruby -v: ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mswin32]


=begin
 [ruby-list:47369]????????宴????????????????????障?????
 --
  ???違??潟????障?????
 
 筝?荐????????????cgi.params['date'][0]???cgi['date']???с??
 ???<?????"20100907"???菴???c?????障????????
 cgi.params['date'][0][4, 2]???cgi['date'][4, 2]?????????翫?????
 ?????鴻??"09"??с???????鴻??nil???????障?????
 ?????????????????????????с???????????鐚?
 
 ??<??帥???"09"???????祉????????緇??????????障????????
 
 ===????????????===
 
 D:\>ruby -v
 ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mswin32]
 
 D:\>irb
 irb(main):001:0> require 'cgi'
 => true
 irb(main):002:0> cgi = CGI.new
 (offline mode: enter name=value pairs on standard input)
 date=20100907
 ^Z
 => #<CGI:0x2be5a80 @output_cookies=nil, @output_hidden=nil, @cookies={},
 @multip
 art=false, @params={"date"=>["20100907"]}>
 irb(main):003:0> cgi.params['date'][0]
 => "20100907"
 irb(main):004:0> cgi.params['date'][0][4, 2]
 => "09"
 irb(main):005:0> cgi['date']
 => "20100907"
 irb(main):006:0> cgi['date'][4, 2]
 => nil
 
 ===????????障??===
=end



-- 
http://redmine.ruby-lang.org