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:
f9ba3d2
)
Fix op/utftaint.t on Win32 following change #27248
author
Steve Hay
<SteveHay@planit.com>
Mon, 27 Feb 2006 14:39:46 +0000
(14:39 +0000)
committer
Steve Hay
<SteveHay@planit.com>
Mon, 27 Feb 2006 14:39:46 +0000
(14:39 +0000)
(Don't remove PATH completely because it'll break on Unix if you
have . in the PATH)
p4raw-link: @27248 on //depot/perl:
5316d14db4aade2e88cbb15cc065195245c0ec51
p4raw-id: //depot/perl@27341
t/op/utftaint.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/utftaint.t
b/t/op/utftaint.t
index
d9614e6
..
ab2a06d
100644
(file)
--- a/
t/op/utftaint.t
+++ b/
t/op/utftaint.t
@@
-144,7
+144,9
@@
for my $ary ([ascii => 'perl'], [latin1 => "\xB6"]) {
}
{
- local @ENV{qw(PATH CDPATH IFS ENV BASH_ENV)} = (undef) x 5;
+ my @keys = qw(CDPATH IFS ENV BASH_ENV);
+ push @keys, qw(PATH) unless $^O eq 'MSWin32';
+ local @ENV{@keys} = (undef) x scalar(@keys);
fresh_perl_is('$a = substr $^X, 0, 0; /\x{100}/i; /$a\x{100}/i || print q,ok,',
'ok', {switches => ["-T", "-l"]},
"matching a regexp is taint agnostic");