summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-05-14 12:27:19 +0000
committerNicholas Clark <nick@ccl4.org>2006-05-14 12:27:19 +0000
commit9c8d215a6f7e1098759dbf707ed95f4895bc227c (patch)
tree312ab048db07d7fbf6d1659e9a2b1a892a1705f0 /t/TEST
parent8d0d504096dac80115e0133d173ed8b2b603e2ee (diff)
downloadperl-9c8d215a6f7e1098759dbf707ed95f4895bc227c.tar.gz
TEST needs to binmode the file handle that is reading the TAP, else it
can get killed if TEST's environment has made it default all opens to UTF-8 but the TAP is not UTF-8. p4raw-id: //depot/perl@28192
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/TEST b/t/TEST
index 39e889cb72..3e2fdf1a18 100755
--- a/t/TEST
+++ b/t/TEST
@@ -406,6 +406,11 @@ EOT
open(RESULTS, $compile_cmd)
or print "can't compile '$compile_cmd': $!.\n";
}
+ # Our environment may force us to use UTF-8, but we can't be sure that
+ # anything we're reading from will be generating (well formed) UTF-8
+ # This may not be the best way - possibly we should unset ${^OPEN} up
+ # top?
+ binmode RESULTS;
my $failure;
my $next = 0;