summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-27 00:49:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-27 00:49:27 +0000
commitbda0f7a595ddfa8fb68d6c9db743f2822d220e6d (patch)
treed374bd5a47a1845a06d5669f5dedbbec27829aa1 /sv.c
parent847a199f22a566ad84276d7dcfe856f0ce7877b8 (diff)
downloadperl-bda0f7a595ddfa8fb68d6c9db743f2822d220e6d.tar.gz
Retract #7863. It makes more sense not to taint formatted output,
not even by sprintf(). p4raw-id: //depot/perl@7875
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sv.c b/sv.c
index be1947ac02..a6e453ff7c 100644
--- a/sv.c
+++ b/sv.c
@@ -6623,11 +6623,10 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
*--eptr = '#';
*--eptr = '%';
+ /* No taint. Otherwise we are in the strange
+ * situaiton where printf() taints but print($float) doesn't.
+ * --jhi */
(void)sprintf(PL_efloatbuf, eptr, nv);
-#ifdef USE_LOCALE_NUMERIC
- if ((PL_hints & HINT_LOCALE) && maybe_tainted)
- *maybe_tainted = TRUE;
-#endif
eptr = PL_efloatbuf;
elen = strlen(PL_efloatbuf);