summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-08-24 13:52:47 -0600
committerKarl Williamson <khw@cpan.org>2022-08-31 08:37:01 -0600
commit45488af500bfccfc3d16e5767274bb885c901d95 (patch)
tree24b3ff50705b1f14734c1c15074cd5752d649998 /inline.h
parent9200ac36927058c8b259a5658983ac5b61ef5e43 (diff)
downloadperl-45488af500bfccfc3d16e5767274bb885c901d95.tar.gz
inline.h: Add fold failure debug statements
Under verbose debugging, this shows cases where folds didn't match.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/inline.h b/inline.h
index 95c8c6a695..597b0709f8 100644
--- a/inline.h
+++ b/inline.h
@@ -3133,8 +3133,14 @@ Perl_foldEQ_locale(pTHX_ const char *s1, const char *s2, I32 len)
assert(len >= 0);
while (len--) {
- if (*a != *b && *a != PL_fold_locale[*b])
+ if (*a != *b && *a != PL_fold_locale[*b]) {
+ DEBUG_Lv(PerlIO_printf(Perl_debug_log,
+ "%s:%d: Our records indicate %02x is not a fold of %02x"
+ " or its mate %02x\n",
+ __FILE__, __LINE__, *a, *b, PL_fold_locale[*b]));
+
return 0;
+ }
a++,b++;
}
return 1;