From 7187d38ecd872451f4332f094b3d173fe8d57255 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 28 Jun 2013 15:43:54 -0600 Subject: [PATCH] Properly determine if in locale for NV stringification Commit 68e8f474bc686a86c064b695b9c7400313d7af65 used the wrong macro to determine if the operation is within the scope of 'use locale'. It also has to operate under 'use locale 'not_characters'. Tests for this are coming in the patch for [perl #118197]. --- sv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv.c b/sv.c index 0e33556..a42b4a8 100644 --- a/sv.c +++ b/sv.c @@ -2928,7 +2928,7 @@ Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags) * change to the C locale during the Gconvert and then change back. * But if we're already in the C locale (PL_numeric_standard is * TRUE in that case), no need to do any changing */ - if (PL_numeric_standard || IN_LOCALE_RUNTIME) { + if (PL_numeric_standard || IN_SOME_LOCALE_FORM_RUNTIME) { Gconvert(SvNVX(sv), NV_DIG, 0, s); } else { -- 2.7.4