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 Apr 6, 2021
1 parent 86a1919 commit 960114c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions locale.c
Expand Up @@ -2658,10 +2658,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 @@ -2682,15 +2680,13 @@ S_win32_setlocale(pTHX_ int category, const char* locale)
setlocale(categories[i], result);
#endif
DEBUG_Lv(PerlIO_printf(Perl_debug_log, "%s\n",
setlocale_debug_string_i(i, result, "not captured")));
setlocale_debug_string_i(i, result, "not captured")));
}
}

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 960114c

Please sign in to comment.