Subject: | CPAN.pm source file contains a null byte |
There's a null byte (chr(0)) in the source of CPAN.pm. Perl (currently)
doesn't appear to mind, but it's not clean: text files should not
contain non-text bytes.
Attached are the test results (Windows command line) with CPAN.pm
versions 1.9205 (latest official release) and 1.92_57 (latest developer
release).
A fix is easy: just run this command line in the directory CPAN is in.
perl -i~ -pe "tr/\0//d" CPAN.pm
Subject: | cpan-bug.txt |
CPAN-1.9205
perl -nle "print qq($.: $_) if /\0/" CPAN.pm
3441: $desc =~ s/.+? - //;
CPAN-1.92_57
perl -nle "print qq($.: $_) if /\0/" CPAN.pm
3578: $desc =~ s/.+? - //;