1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Read CaseFolding.txt in binary mode

* enc/unicode/case-folding.rb (CaseFolding#load): read in binary
  mode to deal with non-ASCII charater in CaseFolding.txt.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-06-24 05:29:28 +00:00
parent bddf4b0237
commit 656c458665

View file

@ -55,7 +55,7 @@ class CaseFolding
@debug = false
turkic = []
IO.foreach(filename) do |line|
IO.foreach(filename, mode: "rb") do |line|
next unless res = pattern.match(line)
ch_from = res[1].to_i(16)