Skip to content

Commit

Permalink
locale.c: windows DEBUG stmts
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 5, 2021
1 parent 13411fb commit f42c0cf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions locale.c
Expand Up @@ -2671,10 +2671,8 @@ S_win32_setlocale(pTHX_ int category, const char* locale)
#else
result = setlocale(category, locale);
#endif
DEBUG_L(STMT_START {
PerlIO_printf(Perl_debug_log, "%s\n",
setlocale_debug_string_r(category, locale, result));
} STMT_END);
DEBUG_L(PerlIO_printf(Perl_debug_log, "%s\n",
setlocale_debug_string_r(category, locale, result)));

if (! override_LC_ALL) {
return result;
Expand All @@ -2700,10 +2698,8 @@ S_win32_setlocale(pTHX_ int category, const char* locale)
}

result = setlocale(LC_ALL, NULL);
DEBUG_L(STMT_START {
PerlIO_printf(Perl_debug_log, "%s\n",
setlocale_debug_string_c(LC_ALL, NULL, result));
} STMT_END);
DEBUG_L(PerlIO_printf(Perl_debug_log, "%s\n",
setlocale_debug_string_c(LC_ALL, NULL, result)));

return result;
}
Expand Down

0 comments on commit f42c0cf

Please sign in to comment.