summaryrefslogtreecommitdiff
path: root/enc/unicode
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
commit656c458665324a674e703cc65927696ad3210820 (patch)
tree7bc495d460ec3503b58ac1db4ba887b9e86888f5 /enc/unicode
parentbddf4b0237f9598df782effc5484120d3786c2f9 (diff)
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/unicode')
-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 6a67d4f..2191210 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)