From 5863c1497f9c3894866e6ddc60e96c35db9f547c Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 22 Jul 2012 22:09:21 -0600 Subject: [PATCH] regcomp.c: Fix condition The else clause is expecting that the regex is compiled under /d, when in fact, until this commit, it could also be under /l. I could not come up with a case currently where this distinction matters, but it's best to not tempt fate. --- regcomp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/regcomp.c b/regcomp.c index 8e3a837..744bbd3 100644 --- a/regcomp.c +++ b/regcomp.c @@ -12355,7 +12355,7 @@ parseit: * fold the classes (folding of those is automatically handled by the swash * fetching code) */ if (posixes) { - if (AT_LEAST_UNI_SEMANTICS) { + if (! DEPENDS_SEMANTICS) { if (cp_list) { _invlist_union(cp_list, posixes, &cp_list); SvREFCNT_dec(posixes); @@ -12365,7 +12365,6 @@ parseit: } } else { - /* Under /d, we put into a separate list the Latin1 things that * match only when the target string is utf8 */ SV* nonascii_but_latin1_properties = NULL; -- 2.7.4