ruby-changes:2739
From: ko1@a...
Date: 15 Dec 2007 02:05:32 +0900
Subject: [ruby-changes:2739] matz - Ruby:r14230 (trunk): * lib/rdoc/options.rb (Options::parse): do not access $KCODE any
matz 2007-12-15 02:05:15 +0900 (Sat, 15 Dec 2007) New Revision: 14230 Modified files: trunk/ChangeLog trunk/lib/cgi.rb trunk/lib/irb/init.rb trunk/lib/rdoc/options.rb trunk/version.h Log: * lib/rdoc/options.rb (Options::parse): do not access $KCODE any longer. [ruby-core:14079] * lib/irb/init.rb (IRB::IRB.parse_opts): ditto. * lib/cgi.rb (CGI::CGI): ditto. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=14230&r2=14229 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/irb/init.rb?r1=14230&r2=14229 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/cgi.rb?r1=14230&r2=14229 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14230&r2=14229 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rdoc/options.rb?r1=14230&r2=14229 Index: ChangeLog =================================================================== --- ChangeLog (revision 14229) +++ ChangeLog (revision 14230) @@ -1,3 +1,12 @@ +Sat Dec 15 01:57:06 2007 Yukihiro Matsumoto <matz@r...> + + * lib/rdoc/options.rb (Options::parse): do not access $KCODE any + longer. [ruby-core:14079] + + * lib/irb/init.rb (IRB::IRB.parse_opts): ditto. + + * lib/cgi.rb (CGI::CGI): ditto. + Fri Dec 14 18:18:31 2007 Tanaka Akira <akr@f...> * thread_pthread.ci (native_thread_create): twice the stack size. Index: lib/cgi.rb =================================================================== --- lib/cgi.rb (revision 14229) +++ lib/cgi.rb (revision 14230) @@ -378,21 +378,13 @@ if Integer($1) < 256 Integer($1).chr else - if Integer($1) < 65536 and ($KCODE[0] == ?u or $KCODE[0] == ?U) - [Integer($1)].pack("U") - else - "&##{$1};" - end + "&##{$1};" end when /\A#x([0-9a-f]+)\z/ni then if $1.hex < 256 $1.hex.chr else - if $1.hex < 65536 and ($KCODE[0] == ?u or $KCODE[0] == ?U) - [$1.hex].pack("U") - else - "&#x#{$1};" - end + "&#x#{$1};" end else "&#{match};" Index: lib/irb/init.rb =================================================================== --- lib/irb/init.rb (revision 14229) +++ lib/irb/init.rb (revision 14230) @@ -140,8 +140,6 @@ when /^-I(.+)?/ opt = $1 || ARGV.shift load_path.concat(opt.split(File::PATH_SEPARATOR)) if opt - when /^-K(.)/ - $KCODE = $1 when "--inspect" @CONF[:INSPECT_MODE] = true when "--noinspect" Index: lib/rdoc/options.rb =================================================================== --- lib/rdoc/options.rb (revision 14229) +++ lib/rdoc/options.rb (revision 14230) @@ -375,14 +375,7 @@ @css = nil @webcvs = nil - @charset = case $KCODE - when /^S/i - 'Shift_JIS' - when /^E/i - 'EUC-JP' - else - 'iso-8859-1' - end + @charset = 'iso-8859-1' accessors = [] Index: version.h =================================================================== --- version.h (revision 14229) +++ version.h (revision 14230) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-12-14" +#define RUBY_RELEASE_DATE "2007-12-15" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20071214 +#define RUBY_RELEASE_CODE 20071215 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 12 -#define RUBY_RELEASE_DAY 14 +#define RUBY_RELEASE_DAY 15 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml