From 6a808bda64f4a6a2e978d71ae0a957906dcb2dd5 Mon Sep 17 00:00:00 2001 From: duerst Date: Tue, 16 Feb 2016 10:10:37 +0000 Subject: * 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 --- enc/unicode/case-folding.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'enc/unicode/case-folding.rb') 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 -- cgit v1.2.3