- 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
{
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);
}