summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-10-12 16:49:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-10-12 16:49:53 +0000
commit90f6ca78c85ab94ac108f3fd8202d56948c025be (patch)
tree162d81e57ad0f4f88c540e75e63f9092e7a7339e /t/TEST
parent9df0f64f445f30276560fec596914dd510e244e9 (diff)
downloadperl-90f6ca78c85ab94ac108f3fd8202d56948c025be.tar.gz
Minor tweaks for the test.utf16 target, by Jarkko
p4raw-id: //depot/perl@23362
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/TEST b/t/TEST
index afce704b53..fb3adb932f 100755
--- a/t/TEST
+++ b/t/TEST
@@ -149,7 +149,7 @@ elsif ($with_utf16) {
unlink($u);
if (open(A, $a)) {
if (open(U, ">$u")) {
- print U pack("$f", 0xFEFF);
+ print U pack("$f", 0xFEFF) if $b;
while (<A>) {
print U pack("$f*", unpack("C*", $_));
}
@@ -248,6 +248,9 @@ EOT
open(SCRIPT,"<$test") or die "Can't run $test.\n";
$_ = <SCRIPT>;
close(SCRIPT) unless ($type eq 'deparse');
+ if ($with_utf16) {
+ $_ =~ tr/\0//d;
+ }
if (/#!.*\bperl.*\s-\w*([tT])/) {
$switch = qq{"-$1"};
}