aboutsummaryrefslogtreecommitdiffstats
path: root/enc/unicode.c
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-30 08:25:46 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-30 08:25:46 +0000
commit143ce7f7eee59116e4e23015cf469a899572c6fb (patch)
treee94b3f175dfd8284d32619dfb546898c0eb53d92 /enc/unicode.c
parent37ef75a002c561711c61296b91d6976dd77afc54 (diff)
downloadruby-143ce7f7eee59116e4e23015cf469a899572c6fb.tar.gz
fix uppercasing for U+A64B, CYRILLIC SMALL LETTER MONOGRAPH UK
* enc/unicode.c: Add U+A64B to the special cases 03B9 and 03BC at the end of onigenc_unicode_case_map (Bug #12990). * enc/unicode/case-folding.rb: Add U+A64B to the special cases 03B9 and 03BC. Add a comment pointing to enc/unicode.c. Change warnings to exceptions for unpredicted cases, because this would have been more easily noticed (the warning was not noticed when upgrading to Unicode 9.0.0). * test/ruby/enc/test_case_comprehensive.rb: Remove temporary exclusion of U+A64B from testing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r--enc/unicode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/unicode.c b/enc/unicode.c
index e72b2e64b2..cf77492781 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -777,8 +777,8 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP,
code = folded->code[0];
}
else if ((flags&(ONIGENC_CASE_UPCASE))
- && (code==0x03B9||code==0x03BC)) { /* GREEK SMALL LETTERs IOTA/MU */
- MODIFIED;
+ && (code==0x03B9||code==0x03BC||code==0xA64B)) { /* GREEK SMALL LETTERs IOTA/MU, */
+ MODIFIED; /* CYRILLIC SMALL LETTER MONOGRAPH UK */
code = folded->code[1];
}
}