ruby-changes:13457
From: xibbar <ko1@a...>
Date: Sun, 4 Oct 2009 22:26:05 +0900 (JST)
Subject: [ruby-changes:13457] Ruby:r25231 (trunk): * lib/cgi/cookie.rb: add default value to @@accept_charset
xibbar 2009-10-04 22:25:49 +0900 (Sun, 04 Oct 2009) New Revision: 25231 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25231 Log: * lib/cgi/cookie.rb: add default value to @@accept_charset if have not defined. [ruby-dev:38987] * lib/cgi/util.rb: ditto. Modified files: trunk/ChangeLog trunk/lib/cgi/cookie.rb trunk/lib/cgi/util.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 25230) +++ ChangeLog (revision 25231) @@ -1,3 +1,10 @@ +Sun Oct 4 22:16:29 2009 Takeyuki FUJIOKA <xibbar@r...> + + * lib/cgi/cookie.rb: add default value to @@accept_charset + if have not defined. [ruby-dev:38987] + + * lib/cgi/util.rb: ditto. + Sun Oct 4 19:30:54 2009 Nobuyoshi Nakada <nobu@r...> * marshal.c (struct {dump,load}_arg): manage with dfree, instead Index: lib/cgi/util.rb =================================================================== --- lib/cgi/util.rb (revision 25230) +++ lib/cgi/util.rb (revision 25231) @@ -1,4 +1,5 @@ class CGI + @@accept_charset="UTF-8" unless defined?(@@accept_charset) # URL-encode a string. # url_encoded_string = CGI::escape("'Stop!' said Fred") # # => "%27Stop%21%27+said+Fred" Index: lib/cgi/cookie.rb =================================================================== --- lib/cgi/cookie.rb (revision 25230) +++ lib/cgi/cookie.rb (revision 25231) @@ -32,6 +32,7 @@ # cookie1.expires = Time.now + 30 # cookie1.secure = true class CGI + @@accept_charset="UTF-8" unless defined?(@@accept_charset) class Cookie < Array # Create a new CGI::Cookie object. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/