diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-22 11:03:23 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-22 11:03:23 +0000 |
commit | 86f5f026774d79f71b3ad989e8fb32ca09821acd (patch) | |
tree | 0e6e49970946ed6a1ce6a007833f9831a97d6cf1 /test | |
parent | 63f4fc73d922b33edbb8e5ad63376d5b56410635 (diff) |
* test/test_unicode_normalize.rb: set encoding when reading.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/test_unicode_normalize.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb index 315b682b0a..587ab18575 100644 --- a/test/test_unicode_normalize.rb +++ b/test/test_unicode_normalize.rb @@ -10,7 +10,7 @@ class TestNormalize < Test::Unit::TestCase @@debug = false # if true, generation of explicit error messages is switched on # false is about two times faster than true def read_tests - IO.readlines(File.expand_path('../enc/unicode/data/NormalizationTest.txt', __dir__)) + IO.readlines(File.expand_path('../enc/unicode/data/NormalizationTest.txt', __dir__), encoding: 'utf-8') .collect.with_index { |linedata, linenumber| [linedata, linenumber]} .reject { |line| line[0] =~ /^[\#@]/ } .collect do |line| |