ruby-changes:17324
From: naruse <ko1@a...>
Date: Fri, 24 Sep 2010 09:43:52 +0900 (JST)
Subject: [ruby-changes:17324] Ruby:r29329 (trunk): Refix to give the encoding of gzfile.
naruse 2010-09-24 09:43:44 +0900 (Fri, 24 Sep 2010) New Revision: 29329 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29329 Log: Refix to give the encoding of gzfile. Modified files: trunk/test/rexml/test_order.rb Index: test/rexml/test_order.rb =================================================================== --- test/rexml/test_order.rb (revision 29328) +++ test/rexml/test_order.rb (revision 29329) @@ -43,7 +43,7 @@ end # Provided by Tom Talbott def test_more_ordering - doc = REXML::Document.new(Zlib::GzipReader.new(File.new(fixture_path('LostineRiver.kml.gz'),'r:utf-8'))) + doc = REXML::Document.new(Zlib::GzipReader.new(File.new(fixture_path('LostineRiver.kml.gz')), encoding: 'utf-8')) actual = [ "Head south from Phinney Ave N", "Turn left at N 36th St", -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/