diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-16 10:10:37 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-16 10:10:37 +0000 |
commit | 6a808bda64f4a6a2e978d71ae0a957906dcb2dd5 (patch) | |
tree | 7167a7857aba36530ae91acd8485f0353e9d698f /enc/unicode/case-folding.rb | |
parent | 527fa610870bd7823560ba7fda8e72e21fc42d7e (diff) |
* enc/unicode/case-folding.rb, casefold.h: Used only first element
(rather than all) of target in CaseUnfold_11 array.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode/case-folding.rb')
-rwxr-xr-x | enc/unicode/case-folding.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb index c8c97106c2..27ed04aee9 100755 --- a/enc/unicode/case-folding.rb +++ b/enc/unicode/case-folding.rb @@ -222,6 +222,7 @@ class CaseMapping flags += '|F' if type=='CaseFold_11' from = Array(from).map {|i| "%04X" % i}.join(" ") to = Array(to).map {|i| "%04X" % i}.join(" ") + to = to.split(/ /).first if type=='CaseUnfold_11' item = @mappings[from] if item flags += '|U' if to==item.upper |