summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-26 18:11:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-26 18:11:02 +0000
commit6413315113862034a32b9a6420bf5084246e36ce (patch)
treea95bb9b50a853f1698c0a32718a2649f7c3bea24 /t
parent999385671dd5756f60215f4393ec1ebfb28b812d (diff)
downloadperl-6413315113862034a32b9a6420bf5084246e36ce.tar.gz
Fix locale inconsistencies unearthed by Hugo's work.
Now the floating point sprintf really does taint the result string as perllocale promises (has promised for a long time) if "use locale" is in the lexical scope. p4raw-id: //depot/perl@7863
Diffstat (limited to 't')
-rwxr-xr-xt/pragma/locale.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/pragma/locale.t b/t/pragma/locale.t
index a1ec7a1482..89fb4e8717 100755
--- a/t/pragma/locale.t
+++ b/t/pragma/locale.t
@@ -80,9 +80,9 @@ check_taint 7, "\L$a";
check_taint 8, lcfirst($a);
check_taint 9, "\l$a";
-check_taint_not 10, sprintf('%e', 123.456);
-check_taint_not 11, sprintf('%f', 123.456);
-check_taint_not 12, sprintf('%g', 123.456);
+check_taint 10, sprintf('%e', 123.456);
+check_taint 11, sprintf('%f', 123.456);
+check_taint 12, sprintf('%g', 123.456);
check_taint_not 13, sprintf('%d', 123.456);
check_taint_not 14, sprintf('%x', 123.456);