From: Steve Hay Date: Mon, 27 Feb 2006 14:39:46 +0000 (+0000) Subject: Fix op/utftaint.t on Win32 following change #27248 X-Git-Tag: perl-5.9.4~1247 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/27af0734ff197d2d3cb6b991b9e13e0cd9e8d62c Fix op/utftaint.t on Win32 following change #27248 (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 --- diff --git a/t/op/utftaint.t b/t/op/utftaint.t index d9614e6..ab2a06d 100644 --- 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");