Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Meta CPAN distribution.

Report information
The Basics
Id: 69979
Status: resolved
Priority: 0/
Queue: CPAN-Meta

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.112150
Fixed in: (no value)



Subject: YAML fail
YAML.pm version 0.73, perl 5.14.0, Win XP SP2 Russian. YAML Error: Invalid characters in stream. This parser only supports printable ASCII Code: YAML_PARSE_ERR_BAD_CHARS Line: 0 Document: 0 at D:/strawberry514/perl/vendor/lib/YAML.pm line 36 at t/converter-bad.t line 21 # Tests were run but no plan was declared and done_testing() was not seen. t/converter-bad.t ..... Dubious, test returned 255 (wstat 65280, 0xff00) All 45 subtests passed # Failed test 'load_file('98042513-META.yml')' # at t/load-bad.t line 17. # YAML Error: Invalid characters in stream. This parser only supports printable ASCII # Code: YAML_PARSE_ERR_BAD_CHARS # Line: 0 # Document: 0 # at D:/strawberry514/perl/vendor/lib/YAML.pm line 36 # at D:\strawberry514\cpan\build\CPAN-Meta-2.112150-RSzitE\blib\lib/CPAN/Meta.pm line 154 # at t/load-bad.t line 16 # Failed test 'load_yaml_string(slurp('98042513-META.yml'))' # at t/load-bad.t line 21. # YAML Error: Invalid characters in stream. This parser only supports printable ASCII # Code: YAML_PARSE_ERR_BAD_CHARS # Line: 0 # Document: 0 # at D:/strawberry514/perl/vendor/lib/YAML.pm line 36 # at D:\strawberry514\cpan\build\CPAN-Meta-2.112150-RSzitE\blib\lib/CPAN/Meta.pm line 168 # at t/load-bad.t line 20 # Looks like you failed 2 tests of 40. t/load-bad.t .......... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/40 subtests -- Alexandr Ciornii, http://chorny.net
It looks like this only occurs on Strawberry Perl since it was compiled to have $ENV{PERL_YAML_BACKEND} set to "YAML". Normally Parse::CPAN::Meta will parse the YAML file using CPAN::Meta::YAML, but because Strawberry Perl has this environment variable hard-coded, Parse::CPAN::Meta uses YAML to parse the YAML file instead, which dies on parsing non-ASCII characters. I'm not sure what would really need to be fixed.
Subject: Re: [rt.cpan.org #69979] YAML fail
Date: Sun, 18 Sep 2011 20:48:51 -0400
To: bug-CPAN-Meta [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Sun, Sep 18, 2011 at 6:00 PM, Douglas Christopher Wilson via RT <bug-CPAN-Meta@rt.cpan.org> wrote: Show quoted text
>       Queue: CPAN-Meta >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=69979 > > > It looks like this only occurs on Strawberry Perl since it was compiled > to have $ENV{PERL_YAML_BACKEND} set to "YAML". Normally > Parse::CPAN::Meta will parse the YAML file using CPAN::Meta::YAML, but > because Strawberry Perl has this environment variable hard-coded, > Parse::CPAN::Meta uses YAML to parse the YAML file instead, which dies > on parsing non-ASCII characters. I'm not sure what would really need to > be fixed.
Sounds like the tests should guard against that environment variable. Then CPAN::Meta tests should pass, things will break at runtime, and it's clearer what is at fault. I'm disappointed to hear that Strawberry is setting that variable. -- David
Test fix added and released as CPAN-Meta-2.112620.