summaryrefslogtreecommitdiff
path: root/test/rexml/test_order.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-19 17:28:30 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-19 17:28:30 +0000
commit0433134947a051d5eba5ba3771f346ef437facb8 (patch)
treea5d64bf30591439dd7e0b19282e5d6c758bc3601 /test/rexml/test_order.rb
parent3038eae7f6e95dfc85f7256763560f0b47b71e46 (diff)
Specify external encoding.
When external encoding is not specified, it uses default external encoding. But it depends the environment. So specify as UTF-8 for environments whose locale is not UTF-8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_order.rb')
-rw-r--r--test/rexml/test_order.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb
index db1698f..2efb1d7 100644
--- a/test/rexml/test_order.rb
+++ b/test/rexml/test_order.rb
@@ -43,7 +43,7 @@ END
end
# Provided by Tom Talbott
def test_more_ordering
- doc = REXML::Document.new(Zlib::GzipReader.new(File.new(fixture_path('LostineRiver.kml.gz'))))
+ doc = REXML::Document.new(Zlib::GzipReader.new(File.new(fixture_path('LostineRiver.kml.gz'),'r:utf-8')))
actual = [
"Head south from Phinney Ave N",
"Turn left at N 36th St",