Subject: | File::Slurp is using deprecated syswrite/sysread on utf8 handles [perl 5.24] |
This is a problem only with perl 5.24 and later, view https://rt.perl.org/Ticket/Display.html?id=125760
Steps to reproduce:
Show quoted text
> perl -MFile::Slurp -E 'say $File::Slurp::VERSION'
9999.19
Show quoted text> perl -MFile::Slurp -E 'my $p = File::Slurp::read_file( $^X, binmode => q{:utf8} ); File::Slurp::write_file( q{/tmp/xx}, { binmode => q{:utf8}, buf_ref => $p } )'
sysread() is deprecated on :utf8 handles at .../File/Slurp.pm line 225.
sysread() is deprecated on :utf8 handles at .../File/Slurp.pm line 225.
syswrite() is deprecated on :utf8 handles at .../File/Slurp.pm line 506.