Skip to content

Commit

Permalink
locale.c: Use proper macro
Browse files Browse the repository at this point in the history
querylocale_c()  likely will expand to the correct thing, but it isn't
defined until higher in the stack of locale handling layers.  Instead
use the construct that is lower in the stack.
  • Loading branch information
khwilliamson committed Jun 3, 2023
1 parent 22acf15 commit 62ae94f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locale.c
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,8 @@ S_stdize_locale(pTHX_ const int category,
retval = input_locale; /* The input can be returned unchanged */
}
else {
retval = save_to_buffer(querylocale_c(LC_ALL), buf, buf_size);
retval = save_to_buffer(posix_setlocale(LC_ALL, NULL),
buf, buf_size);
}

for (i = 0; i < LC_ALL_INDEX_; i++) {
Expand Down

0 comments on commit 62ae94f

Please sign in to comment.