Skip to content

locale.c: Don't ever use system LC_ALL #20241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions locale.c
Original file line number Diff line number Diff line change
Expand Up @@ -4649,8 +4649,12 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
# endif
# ifdef USE_PL_CURLOCALES

/* Initialize our records. If we have POSIX 2008, we have LC_ALL */
void_setlocale_c(LC_ALL, porcelain_setlocale(LC_ALL, NULL));
/* Initialize our records. */
for (i = 0; i < NOMINAL_LC_ALL_INDEX; i++) {
(void) emulate_setlocale_i(i, porcelain_setlocale(categories[i], NULL),
RECALCULATE_LC_ALL_ON_FINAL_INTERATION,
__LINE__);
}

# endif

Expand Down