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:
parent
bddf4b0237
commit
656c458665
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue