Do locale specific separator if only in locale.
Jarkko Hietaniemi [Sun, 10 Jun 2001 01:08:26 +0000 (01:08 +0000)]
p4raw-id: //depot/perl@10490

util.c

diff --git a/util.c b/util.c
index 9cf667f..ecaf18b 100644 (file)
--- a/util.c
+++ b/util.c
@@ -4083,7 +4083,7 @@ Perl_my_atof2(pTHX_ const char* orig, NV* value)
     I32 offcount;      /* number of digits in least significant part */
 
 #ifdef USE_LOCALE_NUMERIC
-    if (PL_numeric_radix_sv)
+    if (PL_numeric_radix_sv && IN_LOCALE)
        point = SvPV(PL_numeric_radix_sv, pointlen);
 #endif