Revert the sv.c part of #6559, a better fix is needed.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 10 Aug 2000 21:48:26 +0000 (21:48 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 10 Aug 2000 21:48:26 +0000 (21:48 +0000)
p4raw-id: //depot/perl@6573

sv.c

diff --git a/sv.c b/sv.c
index 92c53ee..382805f 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -6563,8 +6563,12 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
                *--eptr = '#';
            *--eptr = '%';
 
-           (void)sprintf(PL_efloatbuf, eptr, nv);
-       
+           {
+               RESTORE_NUMERIC_STANDARD();
+               (void)sprintf(PL_efloatbuf, eptr, nv);
+               RESTORE_NUMERIC_LOCAL();
+           }
+
            eptr = PL_efloatbuf;
            elen = strlen(PL_efloatbuf);
            break;