Files
perl/perl-pmtrans.diff

11 lines
445 B
Diff

--- op.c.orig 2025-04-11 13:13:56.375449813 +0000
+++ op.c 2025-04-11 13:14:31.919397621 +0000
@@ -6520,6 +6520,7 @@ S_pmtrans(pTHX_ OP *o, OP *expr, OP *rep
* same time. But otherwise one crosses before the other */
if (t_cp < 256 && r_cp_end > 255 && r_cp != t_cp) {
can_force_utf8 = TRUE;
+ max_expansion = MAX(2, max_expansion);
}
}