+ bugfix: from Onigmo upstream master

This commit is contained in:
Rainer Kottenhoff 2018-11-12 16:34:10 +01:00
parent dd581ba03f
commit 94fc854e2d

View File

@ -997,7 +997,8 @@ onigenc_single_byte_ascii_only_case_map(OnigCaseFoldType* flagP, const OnigUChar
if (code >= 'a' && code <= 'z' && (flags & ONIGENC_CASE_UPCASE)) {
flags |= ONIGENC_CASE_MODIFIED;
code += 'A' - 'a';
code -= 'a';
code += 'A';
} else if (code >= 'A' && code <= 'Z' &&
(flags & (ONIGENC_CASE_DOWNCASE | ONIGENC_CASE_FOLD))) {
flags |= ONIGENC_CASE_MODIFIED;