Skip Menu |

This queue is for tickets about the Lingua-SWE-Num2Word CPAN distribution.

Report information
The Basics
Id: 104855
Status: open
Priority: 0/
Queue: Lingua-SWE-Num2Word

People
Owner: PETAMEM [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: New warning: Use of the encoding pragma is deprecated
"use encoding" is deprecated in newer perl versions (at least since 5.18) and throws a warning. Sample CPAN Testers reports: * http://www.cpantesters.org/cpan/report/a8fbbe68-0778-11e5-891f-a4fadfbfc7aa * http://www.cpantesters.org/cpan/report/bb042422-aded-11e4-80f1-930ee0bfc7aa
On 2015-06-01 15:56:46, SREZIC wrote: Show quoted text
> "use encoding" is deprecated in newer perl versions (at least since > 5.18) and throws a warning. Sample CPAN Testers reports: > * http://www.cpantesters.org/cpan/report/a8fbbe68-0778-11e5-891f- > a4fadfbfc7aa > * http://www.cpantesters.org/cpan/report/bb042422-aded-11e4-80f1- > 930ee0bfc7aa
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
On Thu Aug 04 18:17:41 2016, SREZIC wrote: Show quoted text
> On 2015-06-01 15:56:46, SREZIC wrote:
> > "use encoding" is deprecated in newer perl versions (at least since > > 5.18) and throws a warning. Sample CPAN Testers reports: > > * http://www.cpantesters.org/cpan/report/a8fbbe68-0778-11e5-891f- > > a4fadfbfc7aa > > * http://www.cpantesters.org/cpan/report/bb042422-aded-11e4-80f1- > > 930ee0bfc7aa
> > > 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.