summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-10 21:48:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-10 21:48:26 +0000
commitbf24ccfabc44ce9281e73f298279caca3c8d1164 (patch)
tree644246d4492bf69496c701efc212d2bc9c271f91 /sv.c
parent8dae84129f0c598a816cd2005915355714453456 (diff)
downloadperl-bf24ccfabc44ce9281e73f298279caca3c8d1164.tar.gz
Revert the sv.c part of #6559, a better fix is needed.
p4raw-id: //depot/perl@6573
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 92c53ee667..382805f362 100644
--- 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;