aboutsummaryrefslogtreecommitdiffstats
path: root/enc
diff options
context:
space:
mode:
Diffstat (limited to 'enc')
-rw-r--r--enc/unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/unicode.c b/enc/unicode.c
index 6866285d9f..3f41ea3844 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -645,7 +645,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP,
}
}
}
- else if (code>=0x00C0) { /* deal with non-ASCII; nothing relevant below U+00C0 */
+ else if (!(flags&ONIGENC_CASE_ASCII_ONLY) && code>=0x00C0) { /* deal with non-ASCII; nothing relevant below U+00C0 */
if (code==0x0130) {
if (flags&ONIGENC_CASE_DOWNCASE) {
if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI)