diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-06 14:45:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-06 14:45:49 +0000 |
commit | c62eafe73d71c8f81109c8565a0c885a26340021 (patch) | |
tree | 362fa5ae739049ee1fa7747638a0dc3a81666a00 | |
parent | 9ba0d56190d38ab9c4d898978831b3c9350d3046 (diff) | |
download | ruby-c62eafe73d71c8f81109c8565a0c885a26340021.tar.gz |
Fix r53748; the datafile includes non ASCII
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/enc/test_regex_casefold.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/enc/test_regex_casefold.rb b/test/ruby/enc/test_regex_casefold.rb index 808ea14c90..30193e340f 100644 --- a/test/ruby/enc/test_regex_casefold.rb +++ b/test/ruby/enc/test_regex_casefold.rb @@ -18,7 +18,7 @@ class TestCaseFold < Test::Unit::TestCase end def read_tests - IO.readlines(File.expand_path("../../../enc/unicode/data/#{UNICODE_VERSION}/CaseFolding.txt", __dir__)) + IO.readlines(File.expand_path("../../../enc/unicode/data/#{UNICODE_VERSION}/CaseFolding.txt", __dir__), encoding: Encoding::ASCII_8BIT) .collect.with_index { |linedata, linenumber| [linenumber.to_i+1, linedata.chomp] } .reject { |number, data| data =~ /^(#|$)/ } .collect do |linenumber, linedata| |