Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Feb 2, 2023
1 parent 37c476a commit 0ada91d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions locale.c
Expand Up @@ -793,6 +793,9 @@ S_my_setlocale_i(pTHX_ const unsigned int cat_index,

return NULL;
}
else if (strNE(locale, new_locale)) {
DEBUG_L(PerlIO_printf(Perl_debug_log, "%s NOT EQUAL %s vs %s\n", category_names[cat_index], locale, new_locale));
}

# ifdef DEBUGGING

Expand Down Expand Up @@ -4647,6 +4650,14 @@ S_my_langinfo_i(pTHX_
* for both save and restore. */
const char * orig_CTYPE_locale = toggle_locale_c(LC_CTYPE, locale);

# ifdef USE_THREAD_SAFE_LOCALE_EMULATION

if (strchr(locale, ';')) {
locale_panic_(Perl_form(aTHX_ "%s: %d: trying to set %s to %s\n",
__FILE__, __LINE__, category_names[cat_index], locale));
}

# endif
# endif

const char * orig_switched_locale = toggle_locale_i(cat_index, locale);
Expand Down

0 comments on commit 0ada91d

Please sign in to comment.