diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-06-10 09:51:16 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-06-10 09:51:16 +0000 |
commit | f2bb49b68cb535c8bc5ed120954660e49ab7d44b (patch) | |
tree | cb253057873f2abfaa83bcd73ce8de1a0f7364fa /ext/PerlIO | |
parent | 3f125e84d24d568b354883238496eb3c33c84e9d (diff) | |
download | perl-f2bb49b68cb535c8bc5ed120954660e49ab7d44b.tar.gz |
Tune test to run in UTF-8 locales
- test file must be opened as :bytes or high-bit octets
will be UTF-8 encoded on write in such locales, so
will not read as expected.
p4raw-id: //depot/perlio@17159
Diffstat (limited to 'ext/PerlIO')
-rw-r--r-- | ext/PerlIO/t/fallback.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/PerlIO/t/fallback.t b/ext/PerlIO/t/fallback.t index 42a958d29f..1cefa0d52a 100644 --- a/ext/PerlIO/t/fallback.t +++ b/ext/PerlIO/t/fallback.t @@ -48,8 +48,8 @@ close($fh); { no utf8; - open($fh,">$file") || die "File cannot be re-opened"; - print $fh "£0.02\n"; + open($fh,">:bytes",$file) || die "File cannot be re-opened"; + print $fh "\xA30.02\n"; close($fh); } |