mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* lib/cgi.rb (CGI::out): specify -m0 -x option for nkf.
[ruby-dev:29284] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
22c071c8eb
commit
954d456a96
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Sep 4 16:29:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/cgi.rb (CGI::out): specify -m0 -x option for nkf.
|
||||||
|
[ruby-dev:29284]
|
||||||
|
|
||||||
Mon Sep 4 16:13:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Mon Sep 4 16:13:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (pipe_open): command name should not contain null bytes.
|
* io.c (pipe_open): command name should not contain null bytes.
|
||||||
|
|
|
@ -708,13 +708,13 @@ class CGI
|
||||||
require "nkf"
|
require "nkf"
|
||||||
case options["charset"]
|
case options["charset"]
|
||||||
when /iso-2022-jp/ni
|
when /iso-2022-jp/ni
|
||||||
content = NKF::nkf('-j', content)
|
content = NKF::nkf('-m0 -x -j', content)
|
||||||
options["language"] = "ja" unless options.has_key?("language")
|
options["language"] = "ja" unless options.has_key?("language")
|
||||||
when /euc-jp/ni
|
when /euc-jp/ni
|
||||||
content = NKF::nkf('-e', content)
|
content = NKF::nkf('-m0 -x -e', content)
|
||||||
options["language"] = "ja" unless options.has_key?("language")
|
options["language"] = "ja" unless options.has_key?("language")
|
||||||
when /shift_jis/ni
|
when /shift_jis/ni
|
||||||
content = NKF::nkf('-s', content)
|
content = NKF::nkf('-m0 -x -s', content)
|
||||||
options["language"] = "ja" unless options.has_key?("language")
|
options["language"] = "ja" unless options.has_key?("language")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue