This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fixed two long-standing locale bugs.
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index 4b4e140..b025b24 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -6146,9 +6146,8 @@ Perl_scan_num(pTHX_ char *start)
 
        /* make an sv from the string */
        sv = NEWSV(92,0);
-       /* reset numeric locale in case we were earlier left in Swaziland */
-       SET_NUMERIC_STANDARD();
-       value = atof(PL_tokenbuf);
+
+       value = Atof(PL_tokenbuf);
 
        /* 
           See if we can make do with an integer value without loss of