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 May 6, 2023
1 parent 3b2890c commit 0a0aa7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locale.c
Expand Up @@ -1483,7 +1483,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 0a0aa7d

Please sign in to comment.