summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/pp.c b/pp.c
index 309cdbc699..3c7421520a 100644
--- a/pp.c
+++ b/pp.c
@@ -4555,21 +4555,8 @@ PP(pp_fc)
for (; s < send; s++) {
STRLEN ulen;
- UV fc = _to_uni_fold_flags(*s, tmpbuf, &ulen, flags);
- if UVCHR_IS_INVARIANT(fc) {
- if (full_folding
- && *s == LATIN_SMALL_LETTER_SHARP_S)
- {
- *d++ = 's';
- *d++ = 's';
- }
- else
- *d++ = (U8)fc;
- }
- else {
- Copy(tmpbuf, d, ulen, U8);
- d += ulen;
- }
+ _to_uni_fold_flags(*s, d, &ulen, flags);
+ d += ulen;
}
break;
}