From ba9114af805c1f409d573d03e17e4b53cd257ebc Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 18 Dec 2011 11:38:34 -0700 Subject: [PATCH] utf8.c: foldEQ_utf8_flags() use specific flag, not just any The test here was if any flag was set, not the particular desired one. This doesn't cause any bugs as things are currently structured, but could in the future. The reason it doesn't cause any bugs currently are that the other flags are tested first, and only if they are both 0 does this flag get tested. --- utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf8.c b/utf8.c index 7bc2b38..5444e3d 100644 --- a/utf8.c +++ b/utf8.c @@ -3960,7 +3960,7 @@ Perl_foldEQ_utf8_flags(pTHX_ const char *s1, char **pe1, register UV l1, bool u1 n1 = n2 = 0; } else if (isASCII(*p2)) { - if (flags && ! isASCII(*p1)) { + if ((flags & FOLDEQ_UTF8_NOMIX_ASCII) && ! isASCII(*p1)) { return 0; } n2 = 1; -- 2.7.4