aboutsummaryrefslogtreecommitdiffstats
path: root/enc/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'enc/unicode.c')
-rw-r--r--enc/unicode.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/enc/unicode.c b/enc/unicode.c
index 96294f7c3c..2170301985 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -698,6 +698,15 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP,
}
}
}
+ else if ((folded = onigenc_unicode_unfold1_lookup(code)) != 0) {
+ if (flags&OnigCaseFoldFlags(folded->n)) {
+ int count = OnigCodePointCount(folded->n);
+ const OnigCodePoint *next = folded->code;
+ MODIFIED;
+ if (count==1)
+ code = *next;
+ }
+ }
}
to += ONIGENC_CODE_TO_MBC(enc, code, to);
/* switch from titlecase to lowercase for capitalize */