summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-12-23 13:05:33 -0700
committerKarl Williamson <khw@cpan.org>2018-12-25 09:08:11 -0700
commitcfd2398321b12901ccf268fac831f8dbc085b44d (patch)
tree073bf1add6b4ac911234997b11e1cd7a3c142aef /utf8.c
parent68a23e40ba252d7a69cc8dab05663094b1807109 (diff)
downloadperl-cfd2398321b12901ccf268fac831f8dbc085b44d.tar.gz
Fix bug in foldEQ_utf8_flags()
We need to pass the flag that says to not allow non-ASCII characters to fold to ASCII on to the code that actually does it. There are apparently no current errors that arise from this bug, but a future commit would otherwise expose this problem.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index 9095cda745..960f1e4814 100644
--- a/utf8.c
+++ b/utf8.c
@@ -5518,6 +5518,9 @@ Perl_foldEQ_utf8_flags(pTHX_ const char *s1, char **pe1, UV l1, bool u1,
flags_for_folder |= FOLD_FLAGS_LOCALE;
}
}
+ if (flags & FOLDEQ_UTF8_NOMIX_ASCII) {
+ flags_for_folder |= FOLD_FLAGS_NOMIX_ASCII;
+ }
if (pe1) {
e1 = *(U8**)pe1;