Skip to content

Commit

Permalink
XXX more work mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Nov 22, 2023
1 parent af59aef commit 9417212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions locale.c
Expand Up @@ -481,8 +481,8 @@ S_wsetlocale(const int category, const wchar_t * wlocale)
Size_t string_size = wcslen(wresult) + 1;

if (wsetlocale_buf_size == 0) {
Newx(wsetlocale_buf, string_size, wchar_t);
wsetlocale_buf_size = string_size;
Newx(wsetlocale_buf, 4096, wchar_t);
wsetlocale_buf_size = 4096;

# ifdef MULTIPLICITY

Expand Down Expand Up @@ -4558,6 +4558,7 @@ STATIC const char *
S_wrap_wsetlocale(pTHX_ const int category, const char *locale)
{
PERL_ARGS_ASSERT_WRAP_WSETLOCALE;
DEBUG_L(PerlIO_printf(Perl_debug_log, "Entering wrap_wsetlocale, cat=%d locale=%s\n", category, locale));

/* Calls _wsetlocale(), converting the parameters/return to/from
* Perl-expected forms as if plain setlocale() were being called instead.
Expand Down

0 comments on commit 9417212

Please sign in to comment.