diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-10-12 16:49:53 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-10-12 16:49:53 +0000 |
commit | 90f6ca78c85ab94ac108f3fd8202d56948c025be (patch) | |
tree | 162d81e57ad0f4f88c540e75e63f9092e7a7339e /t/TEST | |
parent | 9df0f64f445f30276560fec596914dd510e244e9 (diff) | |
download | perl-90f6ca78c85ab94ac108f3fd8202d56948c025be.tar.gz |
Minor tweaks for the test.utf16 target, by Jarkko
p4raw-id: //depot/perl@23362
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"}; } |