This repository was archived by the owner on Dec 11, 2024. It is now read-only.
This repository was archived by the owner on Dec 11, 2024. It is now read-only.
open qw(:std :utf8) not printed correctly at run time #57
Open
Description
This is a simplified version of xtestc/2900.t
use open qw(:std :utf8);
BEGIN{ `echo -n ö > /tmp/xx.bak`; }
open X, "/tmp/xx.bak";
$_ = <X>;
print qq[ok $_\n] if ord($_) == 246;
This prints ok �
instead of the expected ok ö
the character is correctly set to 246 when reading it, but the print is incorrect.
We are probably missing a flag somewhere
HEAD=@2e9ae51d1e