Permalink
Browse files

locale.c: White-space only

Indent because the previous commit created an enclosing block, and
add a blank line elsewhere
  • Loading branch information...
khwilliamson committed Jan 2, 2018
1 parent 924bb4f commit cc11fd03109eccb6498f75c5e6a56af23230563f
Showing with 19 additions and 18 deletions.
  1. +19 −18 locale.c
View
@@ -1891,6 +1891,7 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
/* disallow with "" or "0" */
*bad_lang_use_once
&& strNE("0", bad_lang_use_once)))));
/* setlocale() return vals; not copied so must be looked at immediately */
const char * sl_result[NOMINAL_LC_ALL_INDEX + 1];
@@ -1992,28 +1993,28 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
{
bool done = FALSE;
if (lang) {
sl_result[LC_ALL_INDEX] = do_setlocale_c(LC_ALL, setlocale_init);
DEBUG_LOCALE_INIT(LC_ALL, setlocale_init, sl_result[LC_ALL_INDEX]);
if (sl_result[LC_ALL_INDEX])
done = TRUE;
else
setlocale_failure = TRUE;
}
if (! setlocale_failure) {
const char * locale_param;
for (i = 0; i < LC_ALL_INDEX; i++) {
locale_param = (! done && (lang || PerlEnv_getenv(category_names[i])))
? setlocale_init
: NULL;
sl_result[i] = do_setlocale_r(categories[i], locale_param);
if (! sl_result[i]) {
if (lang) {
sl_result[LC_ALL_INDEX] = do_setlocale_c(LC_ALL, setlocale_init);
DEBUG_LOCALE_INIT(LC_ALL, setlocale_init, sl_result[LC_ALL_INDEX]);
if (sl_result[LC_ALL_INDEX])
done = TRUE;
else
setlocale_failure = TRUE;
}
if (! setlocale_failure) {
const char * locale_param;
for (i = 0; i < LC_ALL_INDEX; i++) {
locale_param = (! done && (lang || PerlEnv_getenv(category_names[i])))
? setlocale_init
: NULL;
sl_result[i] = do_setlocale_r(categories[i], locale_param);
if (! sl_result[i]) {
setlocale_failure = TRUE;
}
DEBUG_LOCALE_INIT(categories[i], locale_param, sl_result[i]);
}
DEBUG_LOCALE_INIT(categories[i], locale_param, sl_result[i]);
}
}
}
# endif /* LC_ALL */
# endif /* LOCALE_ENVIRON_REQUIRED */

0 comments on commit cc11fd0

Please sign in to comment.