diff options
author | Karl Williamson <khw@cpan.org> | 2022-08-24 13:52:47 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-08-31 08:37:01 -0600 |
commit | 45488af500bfccfc3d16e5767274bb885c901d95 (patch) | |
tree | 24b3ff50705b1f14734c1c15074cd5752d649998 /inline.h | |
parent | 9200ac36927058c8b259a5658983ac5b61ef5e43 (diff) | |
download | perl-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.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |