diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-28 15:52:30 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-28 15:52:30 +0000 |
commit | 8a22007576b03a2f42861e49c20ebb363ff4ba58 (patch) | |
tree | 6f3cfb1cf45bc4e813f06258a1780dadfc1360b7 /t/comp/require.t | |
parent | 88db9e9aa9fc1ee16227e2d3ab69cd2cce234675 (diff) | |
download | perl-8a22007576b03a2f42861e49c20ebb363ff4ba58.tar.gz |
If expecting UTF-8, probably not expecting UTF-16.
p4raw-id: //depot/perl@15584
Diffstat (limited to 't/comp/require.t')
-rwxr-xr-x | t/comp/require.t | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/t/comp/require.t b/t/comp/require.t index ea4b96d20b..44b46cd72c 100755 --- a/t/comp/require.t +++ b/t/comp/require.t @@ -10,8 +10,9 @@ BEGIN { $i = 1; my $Is_EBCDIC = (ord('A') == 193) ? 1 : 0; +my $Is_UTF8 = (${^OPEN} || "") =~ /:utf8/; my $total_tests = 23; -if ($Is_EBCDIC) { $total_tests = 20; } +if ($Is_EBCDIC || $Is_UTF8) { $total_tests = 20; } print "1..$total_tests\n"; sub do_require { @@ -129,9 +130,9 @@ dofile(); sub dofile { do "bleah.do"; }; print $x; -# UTF-encoded things - skipped on EBCDIC machines +# UTF-encoded things - skipped on EBCDIC machines and on UTF-8 input -if ($Is_EBCDIC) { exit; } +if ($Is_EBCDIC || $Is_UTF8) { exit; } my $utf8 = chr(0xFEFF); |