diff options
author | Karl Williamson <khw@cpan.org> | 2018-12-23 13:05:33 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-12-25 09:08:11 -0700 |
commit | cfd2398321b12901ccf268fac831f8dbc085b44d (patch) | |
tree | 073bf1add6b4ac911234997b11e1cd7a3c142aef /utf8.c | |
parent | 68a23e40ba252d7a69cc8dab05663094b1807109 (diff) | |
download | perl-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |