mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
63f4fc73d9
commit
86f5f02677
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue