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

ruby-changes:30954

From: nobu <ko1@a...>
Date: Tue, 24 Sep 2013 16:48:55 +0900 (JST)
Subject: [ruby-changes:30954] nobu:r43033 (trunk): test_encodings.rb: remove BOM encodings

nobu	2013-09-24 16:48:51 +0900 (Tue, 24 Sep 2013)

  New Revision: 43033

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43033

  Log:
    test_encodings.rb: remove BOM encodings
    
    * test/csv/test_encodings.rb (TestCSV#each_encoding): encodings with
      BOM are external use only.

  Modified files:
    trunk/test/csv/test_encodings.rb
Index: test/csv/test_encodings.rb
===================================================================
--- test/csv/test_encodings.rb	(revision 43032)
+++ test/csv/test_encodings.rb	(revision 43033)
@@ -326,6 +326,7 @@ class TestCSV::Encodings < TestCSV https://github.com/ruby/ruby/blob/trunk/test/csv/test_encodings.rb#L326
   def each_encoding
     Encoding.list.each do |encoding|
       next if encoding.dummy?  # skip "dummy" encodings
+      next if encoding == Encoding::UTF_32 or encoding == Encoding::UTF_16
       yield encoding
     end
   end

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

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