[前][次][番号順一覧][スレッド一覧]

ruby-changes:44283

From: nobu <ko1@a...>
Date: Thu, 6 Oct 2016 11:01:56 +0900 (JST)
Subject: [ruby-changes:44283] nobu:r56356 (trunk): Update URI WEB_ENCODINGS_ hash, and fix documented cmd to

nobu	2016-10-06 11:01:51 +0900 (Thu, 06 Oct 2016)

  New Revision: 56356

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56356

  Log:
    Update URI WEB_ENCODINGS_ hash, and fix documented cmd to

  Modified files:
    trunk/ChangeLog
    trunk/lib/uri/common.rb
Index: lib/uri/common.rb
===================================================================
--- lib/uri/common.rb	(revision 56355)
+++ lib/uri/common.rb	(revision 56356)
@@ -487,7 +487,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/common.rb#L487
   end
 
   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_ = {
     "unicode-1-1-utf-8"=>"utf-8",
     "utf-8"=>"utf-8",
@@ -593,6 +593,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/common.rb#L593
     "koi8"=>"koi8-r",
     "koi8-r"=>"koi8-r",
     "koi8_r"=>"koi8-r",
+    "koi8-ru"=>"koi8-u",
     "koi8-u"=>"koi8-u",
     "dos-874"=>"windows-874",
     "iso-8859-11"=>"windows-874",
@@ -673,6 +674,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/common.rb#L674
     "csiso2022jp"=>"cp50221",
     "iso-2022-jp"=>"cp50221",
     "csshiftjis"=>"Windows-31J",
+    "ms932"=>"Windows-31J",
     "ms_kanji"=>"Windows-31J",
     "shift-jis"=>"Windows-31J",
     "shift_jis"=>"Windows-31J",
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56355)
+++ ChangeLog	(revision 56356)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct  6 11:01:49 2016  Tieg Zaharia  <tieg.zaharia@g...>
+
+
+
 Thu Oct  6 10:37:13 2016  SHIBATA Hiroshi  <hsbt@r...>
 
 	* enum.c: Add reduce/inject alias note.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]