aboutsummaryrefslogtreecommitdiffstats
path: root/enc/unicode
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-04 01:58:54 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-04 01:58:54 +0000
commit64f7deb0cb8c5e57d253d491deef82b60327e60e (patch)
treeb7c99c86d4162a38c9b9c35cec7dc5e4dd2488a6 /enc/unicode
parent95ed21881f58485637117980d621333f02910c94 (diff)
downloadruby-64f7deb0cb8c5e57d253d491deef82b60327e60e.tar.gz
remove special processing for U+03B9/U+03BC/U+A64B
* enc/unicode.c: Remove special processing for U+03B9/U+03BC/U+A64B (GREEK SMALL LETTERs IOTA/MU, CYRILLIC SMALL LETTER MONOGRAPH UK) from onigenc_unicode_case_map and simplify code. * enc/unicode/case-folding.rb: Remove check for U+03B9/U+03BC/U+A64B. This and the previous few related commits make sure that we won't hit the equivalent of bug #12990 anymore for future updates of Unicode versions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode')
-rwxr-xr-xenc/unicode/case-folding.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb
index aa6c6d5aba..829efefaf1 100755
--- a/enc/unicode/case-folding.rb
+++ b/enc/unicode/case-folding.rb
@@ -305,11 +305,7 @@ class CaseMapping
when item.upper then flags += '|U'
when item.lower then flags += '|D'
else
- unless from=='03B9' or from=='03BC' or from=='A64B'
- # cf. code==0x03B9||code==0x03BC||code==0xA64B in enc/unicode.c,
- # towards the end of function onigenc_unicode_case_map
- raise "Unpredicted case 0 in enc/unicode/case_folding.rb. Please contact https://bugs.ruby-lang.org/."
- end
+ raise "Unpredicted case 0 in enc/unicode/case_folding.rb. Please contact https://bugs.ruby-lang.org/."
end
unless item.upper == item.title
if item.code == item.title