Skip to content

Commit

Permalink
locale.c: Add debug statement for collation failure
Browse files Browse the repository at this point in the history
Perhaps this should be a warning to the user that we couldn't calculate
collation info for the locale, but at least there should be a way to
get that info from a DEBUG statement
  • Loading branch information
khwilliamson committed May 6, 2021
1 parent 90dc881 commit 9ad89c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions locale.c
Expand Up @@ -2260,6 +2260,10 @@ S_new_collate(pTHX_ const char *newcoll)
{
PL_collxfrm_mult = 0;
PL_collxfrm_base = 0;
DEBUG_L(PerlIO_printf(Perl_debug_log,
"Disabling locale collation for LC_COLLATE='%s';"
" length for shorter sample=%zu; longer=%zu\n",
PL_collation_name, x_len_shorter, x_len_longer));
}
else {
SSize_t base; /* Temporary */
Expand Down

0 comments on commit 9ad89c4

Please sign in to comment.