aboutsummaryrefslogtreecommitdiffstats
path: root/enc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-24 05:29:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-24 05:29:28 +0000
commit42d42e92ce6136a0d89945de45680424772c3722 (patch)
tree7bc495d460ec3503b58ac1db4ba887b9e86888f5 /enc
parentfc350a1c4141911f351d1154197ccc44e99924fe (diff)
downloadruby-42d42e92ce6136a0d89945de45680424772c3722.tar.gz
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
Diffstat (limited to 'enc')
-rwxr-xr-xenc/unicode/case-folding.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb
index 6a67d4f483..2191210617 100755
--- a/enc/unicode/case-folding.rb
+++ b/enc/unicode/case-folding.rb
@@ -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)