X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/b1d4925c105b6e865b16a8914b6819899889d639..58e4a4676d898b44a54a55a7062b3bb087afa275:/locale.c diff --git a/locale.c b/locale.c index 99d42e0..b2eaf4c 100644 --- a/locale.c +++ b/locale.c @@ -284,7 +284,7 @@ Perl_set_numeric_standard(pTHX) if (DEBUG_L_TEST || debug_initialization) { PerlIO_printf(Perl_debug_log, - "Underlying LC_NUMERIC locale now is C\n"); + "LC_NUMERIC locale now is standard C\n"); } # endif @@ -313,7 +313,7 @@ Perl_set_numeric_underlying(pTHX) if (DEBUG_L_TEST || debug_initialization) { PerlIO_printf(Perl_debug_log, - "Underlying LC_NUMERIC locale now is %s\n", + "LC_NUMERIC locale now is %s\n", PL_numeric_name); } @@ -3490,14 +3490,12 @@ Perl_my_strerror(pTHX_ const int errnum) /* This function is trivial if we have strerror_l() */ if (within_locale_scope) { - errstr = strerror(errnum); + errstr = savepv(strerror(errnum)); } else { - errstr = strerror_l(errnum, PL_C_locale_obj); + errstr = savepv(strerror_l(errnum, PL_C_locale_obj)); } - errstr = savepv(errstr); - # else /* Doesn't have strerror_l(). */ # ifdef USE_POSIX_2008_LOCALE