зеркало из https://github.com/github/ruby.git
Update URI WEB_ENCODINGS_ hash, and fix documented cmd to
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
364a0879c9
Коммит
48f9118253
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Oct 6 11:01:49 2016 Tieg Zaharia <tieg.zaharia@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Thu Oct 6 10:37:13 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
Thu Oct 6 10:37:13 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||||
|
|
||||||
* enum.c: Add reduce/inject alias note.
|
* enum.c: Add reduce/inject alias note.
|
||||||
|
|
|
@ -487,7 +487,7 @@ module URI
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
# curl http://encoding.spec.whatwg.org/encodings.json|rb -rpp -rjson -e'H={};h={"shift_jis"=>"Windows-31J","euc-jp"=>"cp51932","iso-2022-jp"=>"cp50221","x-mac-cyrillic"=>"macCyrillic"};JSON($<.read).map{|x|x["encodings"]}.flatten.each{|x|Encoding.find(n=h.fetch(n=x["name"],n))rescue next;x["labels"].each{|y|H[y]=n}};pp H'
|
# curl https://encoding.spec.whatwg.org/encodings.json|ruby -rpp -rjson -e'H={};h={"shift_jis"=>"Windows-31J","euc-jp"=>"cp51932","iso-2022-jp"=>"cp50221","x-mac-cyrillic"=>"macCyrillic"};JSON($<.read).map{|x|x["encodings"]}.flatten.each{|x|Encoding.find(n=h.fetch(n=x["name"].downcase,n))rescue next;x["labels"].each{|y|H[y]=n}};pp H'
|
||||||
WEB_ENCODINGS_ = {
|
WEB_ENCODINGS_ = {
|
||||||
"unicode-1-1-utf-8"=>"utf-8",
|
"unicode-1-1-utf-8"=>"utf-8",
|
||||||
"utf-8"=>"utf-8",
|
"utf-8"=>"utf-8",
|
||||||
|
@ -593,6 +593,7 @@ module URI
|
||||||
"koi8"=>"koi8-r",
|
"koi8"=>"koi8-r",
|
||||||
"koi8-r"=>"koi8-r",
|
"koi8-r"=>"koi8-r",
|
||||||
"koi8_r"=>"koi8-r",
|
"koi8_r"=>"koi8-r",
|
||||||
|
"koi8-ru"=>"koi8-u",
|
||||||
"koi8-u"=>"koi8-u",
|
"koi8-u"=>"koi8-u",
|
||||||
"dos-874"=>"windows-874",
|
"dos-874"=>"windows-874",
|
||||||
"iso-8859-11"=>"windows-874",
|
"iso-8859-11"=>"windows-874",
|
||||||
|
@ -673,6 +674,7 @@ module URI
|
||||||
"csiso2022jp"=>"cp50221",
|
"csiso2022jp"=>"cp50221",
|
||||||
"iso-2022-jp"=>"cp50221",
|
"iso-2022-jp"=>"cp50221",
|
||||||
"csshiftjis"=>"Windows-31J",
|
"csshiftjis"=>"Windows-31J",
|
||||||
|
"ms932"=>"Windows-31J",
|
||||||
"ms_kanji"=>"Windows-31J",
|
"ms_kanji"=>"Windows-31J",
|
||||||
"shift-jis"=>"Windows-31J",
|
"shift-jis"=>"Windows-31J",
|
||||||
"shift_jis"=>"Windows-31J",
|
"shift_jis"=>"Windows-31J",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче