From: Shota Fukumori Date: 2010-10-28T11:42:21+09:00 Subject: [ruby-dev:42473] [Ruby 1.9-Bug#3990] tests of rexml/rss reports many errors and failures without iconv チケット #3990 が更新されました。 (by Shota Fukumori) Shota Fukumori (sora_h)です。 rexmlのテストはとりあえずiconvを回避するようにしてみましたがいかがでしょうか。 diff --git test/rexml/test_changing_encoding.rb test/rexml/test_changing_encoding.rb index f83247a..7bb465b 100644 --- test/rexml/test_changing_encoding.rb +++ test/rexml/test_changing_encoding.rb @@ -1,15 +1,13 @@ #!/usr/bin/ruby -Ku # -*- coding: utf-8 -*- -require 'kconv' -require 'iconv' require 'rexml/encoding' class ChangingEncodings < Test::Unit::TestCase def initialize a @u = 'テスト ほげ ふが 美しい' - @e = Kconv.toeuc(@u) + @e = @u.encode('euc-jp') @f = Foo.new super end diff --git test/rexml/test_core.rb test/rexml/test_core.rb index 48a31ae..461f7f2 100644 --- test/rexml/test_core.rb +++ test/rexml/test_core.rb @@ -1123,7 +1123,6 @@ EOL end def test_repeated_writes - require 'iconv' a = IO.read(fixture_path("iso8859-1.xml")) f = REXML::Formatters::Pretty.new ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3990 ---------------------------------------- http://redmine.ruby-lang.org