diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-22 09:17:43 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-22 09:17:43 +0000 |
commit | 5470ce82067948f6d6a18a7805de3c64a2666ddf (patch) | |
tree | 5cae77d720cc0f62dfd9d689a3be11fca489447b /enc/unicode/case-folding.rb | |
parent | cdc5ac2e1e3170d19882c055bab2041afc62d75d (diff) |
* enc/unicode/case-folding.rb, casefold.h: Fixed bug that avoided inclusion
of compatibility characters in uppper-/lower-case mappings.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode/case-folding.rb')
-rwxr-xr-x | enc/unicode/case-folding.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb index 27ed04aee9..30a1f71b1b 100755 --- a/enc/unicode/case-folding.rb +++ b/enc/unicode/case-folding.rb @@ -205,12 +205,11 @@ class CaseMapping def initialize (mapping_directory) @mappings = {} IO.readlines(File.expand_path('UnicodeData.txt', mapping_directory), encoding: Encoding::ASCII_8BIT).each do |line| - next if line =~ /</ + next if line =~ /^</ code, _1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11, upper, lower, title = line.chomp.split ';' unless upper and lower and title and (upper+lower+title)=='' @mappings[code] = MapItem.new(code, upper, lower, title) end - end # IO.readlines(File.expand_path('SpecialCasing.txt', mapping_directory)) |