Skip Menu |
 

This queue is for tickets about the Convert-EastAsianWidth CPAN distribution.

Report information
The Basics
Id: 117453
Status: open
Priority: 0/
Queue: Convert-EastAsianWidth

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

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



Subject: The encoding pragma is no longer supported
Download (untitled) / with headers
text/plain 365b
Tests fail with bleadperl (e.g. perl 5.25.4): The encoding pragma is no longer supported at t/1-basic.t line 4. BEGIN failed--compilation aborted at t/1-basic.t line 4. t/1-basic.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run See also http://matrix.cpantesters.org/?dist=Convert-EastAsianWidth%201.02 for an overview of test reports.
Download (untitled) / with headers
text/plain 620b
On Sat Sep 03 03:27:30 2016, SREZIC wrote: Show quoted text
> Tests fail with bleadperl (e.g. perl 5.25.4): > > The encoding pragma is no longer supported at t/1-basic.t line 4. > BEGIN failed--compilation aborted at t/1-basic.t line 4. > t/1-basic.t ...... > Dubious, test returned 255 (wstat 65280, 0xff00) > No subtests run > > > See also http://matrix.cpantesters.org/?dist=Convert- > EastAsianWidth%201.02 for an overview of test reports.
All encoding.pm is doing here is setting standard handles (the ‘use utf8’ making its other behaviour somewhat redundant). So this patch should work. It also makes the code clearer.
Subject: open_tI7nCOah.txt
Download open_tI7nCOah.txt
text/plain 408b
diff -rup Convert-EastAsianWidth-1.02-0-orig/t/1-basic.t Convert-EastAsianWidth-1.02-0/t/1-basic.t --- Convert-EastAsianWidth-1.02-0-orig/t/1-basic.t 2016-09-03 18:57:33.000000000 -0700 +++ Convert-EastAsianWidth-1.02-0/t/1-basic.t 2016-09-03 18:58:03.000000000 -0700 @@ -1,7 +1,7 @@ #!/usr/bin/perl use utf8; -use encoding 'utf8'; +use open ':std', ':utf8'; use strict; use Test::Simple tests => 3;


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.