cmpVERSION.pl: get_file_from_git() was returning a character string
which was then passed to MM->parse_version(), implicitly using
PerlIO::scalar to parse the content.
test_bootstrap.t complains since some of the test files aren't valid
UTF-8.
sub get_file_from_git {
my ($file, $tag) = @_;
local $/;
+
+ use open IN => ':raw';
return scalar `git --no-pager show $tag:$file 2>$null`;
}
local $/;
open my $t, '<', $file or die "Can't open $file: $!";
+ # avoid PERL_UNICODE causing us to read non-UTF-8 files as UTF-8
+ binmode $t;
my $contents = <$t>;
# Make sure that we don't match ourselves
unlike($contents, qr/use\s+Test::More/, "$file doesn't use Test::\QMore");