Subject: | can make tolerant to non utf-8 ? |
Two distributions I've just added to my build system produced
errors like:
utf8 "\xFC" does not map to Unicode at /opt/work/cis.perl.build/lib/Parse/CPAN/Meta.pm line 89
being invoked from
my $metahp = Parse::CPAN::Meta->load_file($fpath);
The 2 files in question:
Dist-Zilla-Plugin-Test-Compile-2.010/META.yml
- 'Olivier Mengué <dolmen@cpan.org>'
Parse-CPAN-Meta-1.4405/META.yml (ironic)
- 'Steffen Müller <smueller@cpan.org>'
NB these were the only cases among 709 distros built.
The (bootstrap) build uses RHEL6 perl-5.10.1 along with a local lib
directory of various *CPAN* modules including Parse::CPAN::Meta 1.4404.
I had the impression this problem went away when perl-5.16.3 was used,
but that does not seem to be the case when I just tried it.
I believe those yml files should use utf-8, but can Parse::CPAN::Meta be
made more tolerant ?
As a work-around, I apply a patch to each of those yml
files during the build.