On Thu Aug 04 18:17:41 2016, SREZIC wrote:
Show quoted text> On 2015-06-01 15:56:46, SREZIC wrote:
>
>
> This is now a fatal error in bleadperl (e.g. perl 5.25.3):
>
> PERL_DL_NONLAZY=1 "/bbbike/perl-5.25.3/bin/perl5.25.3" "-
> MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
> *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')"
> t/*.t
>
> # Failed test 'use Lingua::SWE::Num2Word;'
> # at t/Num2Word.t line 22.
> # Tried to use 'Lingua::SWE::Num2Word'.
> # Error: The encoding pragma is no longer supported at
> /tmpfs/.cpan-build-cpansand/2016080421/Lingua-SWE-Num2Word-0.0682-
> 4/blib/lib/Lingua/SWE/Num2Word.pm line 14.
> # BEGIN failed--compilation aborted at /tmpfs/.cpan-build-
> cpansand/2016080421/Lingua-SWE-Num2Word-0.0682-
> 4/blib/lib/Lingua/SWE/Num2Word.pm line 14.
> # Compilation failed in require at t/Num2Word.t line 22.
> # BEGIN failed--compilation aborted at t/Num2Word.t line 22.
> Attempt to reload Lingua/SWE/Num2Word.pm aborted.
> Compilation failed in require at t/Num2Word.t line 26.
> BEGIN failed--compilation aborted at t/Num2Word.t line 26.
> # Tests were run but no plan was declared and done_testing() was not
> seen.
> # Looks like your test exited with 255 just after 1.
> t/Num2Word.t ..
> Dubious, test returned 255 (wstat 65280, 0xff00)
> Failed 1/1 subtests
The module can just change from ‘use encoding 'utf8'’ to ‘use utf8’. That will also stop it from changing encoding on the main script’s standard handles, which is a good thing IMO.
The module is also affected by
https://rt.cpan.org/Ticket/Display.html?id=107627, as you know. A simple s/Perl6:://g throughout the distribution will fix that.