p4raw-id: //depot/perl@18970
my $dst_enc = File::Spec->catfile($dir,"$$.enc");
my $dst_utf = File::Spec->catfile($dir,"$$.utf");
-
open $src, "<$src_enc" or die "$src_enc : $!";
+ binmode($src, ":bytes"); # needed when :utf8 in default open layer
$txt = join('',<$src>);
close($src);