mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6deeaf6226
commit
0f0f79d34b
5 changed files with 15 additions and 23 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
Sat Dec 15 01:57:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@fsij.org>
|
Fri Dec 14 18:18:31 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* thread_pthread.ci (native_thread_create): twice the stack size.
|
* thread_pthread.ci (native_thread_create): twice the stack size.
|
||||||
|
|
12
lib/cgi.rb
12
lib/cgi.rb
|
@ -378,21 +378,13 @@ class CGI
|
||||||
if Integer($1) < 256
|
if Integer($1) < 256
|
||||||
Integer($1).chr
|
Integer($1).chr
|
||||||
else
|
else
|
||||||
if Integer($1) < 65536 and ($KCODE[0] == ?u or $KCODE[0] == ?U)
|
"&##{$1};"
|
||||||
[Integer($1)].pack("U")
|
|
||||||
else
|
|
||||||
"&##{$1};"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
when /\A#x([0-9a-f]+)\z/ni then
|
when /\A#x([0-9a-f]+)\z/ni then
|
||||||
if $1.hex < 256
|
if $1.hex < 256
|
||||||
$1.hex.chr
|
$1.hex.chr
|
||||||
else
|
else
|
||||||
if $1.hex < 65536 and ($KCODE[0] == ?u or $KCODE[0] == ?U)
|
"&#x#{$1};"
|
||||||
[$1.hex].pack("U")
|
|
||||||
else
|
|
||||||
"&#x#{$1};"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
"&#{match};"
|
"&#{match};"
|
||||||
|
|
|
@ -140,8 +140,6 @@ module IRB
|
||||||
when /^-I(.+)?/
|
when /^-I(.+)?/
|
||||||
opt = $1 || ARGV.shift
|
opt = $1 || ARGV.shift
|
||||||
load_path.concat(opt.split(File::PATH_SEPARATOR)) if opt
|
load_path.concat(opt.split(File::PATH_SEPARATOR)) if opt
|
||||||
when /^-K(.)/
|
|
||||||
$KCODE = $1
|
|
||||||
when "--inspect"
|
when "--inspect"
|
||||||
@CONF[:INSPECT_MODE] = true
|
@CONF[:INSPECT_MODE] = true
|
||||||
when "--noinspect"
|
when "--noinspect"
|
||||||
|
|
|
@ -375,14 +375,7 @@ class Options
|
||||||
@css = nil
|
@css = nil
|
||||||
@webcvs = nil
|
@webcvs = nil
|
||||||
|
|
||||||
@charset = case $KCODE
|
@charset = 'iso-8859-1'
|
||||||
when /^S/i
|
|
||||||
'Shift_JIS'
|
|
||||||
when /^E/i
|
|
||||||
'EUC-JP'
|
|
||||||
else
|
|
||||||
'iso-8859-1'
|
|
||||||
end
|
|
||||||
|
|
||||||
accessors = []
|
accessors = []
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define RUBY_VERSION "1.9.0"
|
#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_VERSION_CODE 190
|
||||||
#define RUBY_RELEASE_CODE 20071214
|
#define RUBY_RELEASE_CODE 20071215
|
||||||
#define RUBY_PATCHLEVEL 0
|
#define RUBY_PATCHLEVEL 0
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 12
|
#define RUBY_RELEASE_MONTH 12
|
||||||
#define RUBY_RELEASE_DAY 14
|
#define RUBY_RELEASE_DAY 15
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
|
Loading…
Reference in a new issue