On Wed Sep 07 19:12:06 2016, SREZIC wrote:
Show quoted text> Module compilation fails with bleadperl (e.g. perl 5.25.4):
>
> PERL_DL_NONLAZY=1 "/bbbike/perl-5.25.4/bin/perl5.25.4" "-
> MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
> *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')"
> t/*.t
> The encoding pragma is no longer supported at /tmpfs/.cpan-build-
> cpansand/2016090721/Date-Spoken-German-0.05-
> 0/blib/lib/Date/Spoken/German.pm line 97.
> BEGIN failed--compilation aborted at /tmpfs/.cpan-build-
> cpansand/2016090721/Date-Spoken-German-0.05-
> 0/blib/lib/Date/Spoken/German.pm line 97.
> Compilation failed in require at t/basic.t line 4.
> BEGIN failed--compilation aborted at t/basic.t line 4.
> t/basic.t .. skipped: (no reason given)
This module and its basic.t use encoding.pm with 'latin1' as the argument. Since latin1 is Perl’s default, it is not necessary for the module to function correctly. Those lines can simply be deleted, which is what this patch does.
diff -rup Date-Spoken-German-0.05-0-orig/German.pm Date-Spoken-German-0.05-0/German.pm
--- Date-Spoken-German-0.05-0-orig/German.pm 2016-09-12 17:59:42.000000000 -0700
+++ Date-Spoken-German-0.05-0/German.pm 2016-09-12 18:00:17.000000000 -0700
@@ -94,7 +94,6 @@ Type B<perldoc perlmod> to get info on P
package Date::Spoken::German;
-use encoding 'latin1';
use POSIX;
require Exporter;
diff -rup Date-Spoken-German-0.05-0-orig/t/basic.t Date-Spoken-German-0.05-0/t/basic.t
--- Date-Spoken-German-0.05-0-orig/t/basic.t 2016-09-12 17:59:42.000000000 -0700
+++ Date-Spoken-German-0.05-0/t/basic.t 2016-09-12 18:00:18.000000000 -0700
@@ -2,7 +2,6 @@
use Test::More 'no_plan';
use Date::Spoken::German;
-use encoding 'latin1';
my @datetests = ( ["dritter Mai neunzehnhundertfĂĽnfundsiebzig", [3,5,1975]],
["sechzehnter Dezember vierzehn", [16,12,14]],