From 86f5f026774d79f71b3ad989e8fb32ca09821acd Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 22 Oct 2014 11:03:23 +0000 Subject: [PATCH] * 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 --- test/test_unicode_normalize.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|