This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b7c63
)
locale.t: Add test
author
Karl Williamson
<public@khwilliamson.com>
Fri, 7 Dec 2012 02:20:22 +0000
(19:20 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Sun, 9 Dec 2012 16:47:19 +0000
(09:47 -0700)
This makes sure that taint isn't being added unnecessarily
lib/locale.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/locale.t
b/lib/locale.t
index
e75087f
..
6d491e4
100644
(file)
--- a/
lib/locale.t
+++ b/
lib/locale.t
@@
-101,6
+101,10
@@
sub check_taint_not ($;$) {
ok((not is_tainted($_[0])), "verify that isn't tainted$message_tail");
}
+"\tb\t" =~ /^m?(\s)(.*)\1$/;
+check_taint_not $&, "not tainted outside 'use locale'";
+;
+
use locale; # engage locale and therefore locale taint.
check_taint_not $a;