Skip Menu |

This queue is for tickets about the Syntax-Highlight-Engine-Simple CPAN distribution.

Report information
The Basics
Id: 117403
Status: open
Priority: 0/
Queue: Syntax-Highlight-Engine-Simple

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

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



Subject: The encoding pragma is no longer supported
Tests fail with bleadperl (e.g. perl 5.25.4): The encoding pragma is no longer supported at t/highlight.t line 5. BEGIN failed--compilation aborted at t/highlight.t line 5. # Looks like your test exited with 2 before it could output anything. t/highlight.t ... Dubious, test returned 2 (wstat 512, 0x200) Failed 11/11 subtests The encoding pragma is no longer supported at t/highlight2.t line 5. BEGIN failed--compilation aborted at t/highlight2.t line 5. # Looks like your test exited with 2 before it could output anything. t/highlight2.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 3/3 subtests
On Thu Sep 01 13:01:04 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/highlight.t line 5. > BEGIN failed--compilation aborted at t/highlight.t line 5. > # Looks like your test exited with 2 before it could output anything. > t/highlight.t ... > Dubious, test returned 2 (wstat 512, 0x200) > Failed 11/11 subtests > The encoding pragma is no longer supported at t/highlight2.t line 5. > BEGIN failed--compilation aborted at t/highlight2.t line 5. > # Looks like your test exited with 2 before it could output anything. > t/highlight2.t .. > Dubious, test returned 2 (wstat 512, 0x200) > Failed 3/3 subtests
Patch.
Subject: open_yaGenGVe.txt
diff -rup Syntax-Highlight-Engine-Simple-0.09-0-orig/t/highlight.t Syntax-Highlight-Engine-Simple-0.09-0/t/highlight.t --- Syntax-Highlight-Engine-Simple-0.09-0-orig/t/highlight.t 2011-07-06 19:10:52.000000000 -0700 +++ Syntax-Highlight-Engine-Simple-0.09-0/t/highlight.t 2016-09-01 21:50:01.000000000 -0700 @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 11; use Syntax::Highlight::Engine::Simple; -use encoding 'utf8'; +use utf8; binmode(STDIN, ":utf8"); binmode(STDOUT, ":utf8"); binmode(STDERR, ":utf8"); diff -rup Syntax-Highlight-Engine-Simple-0.09-0-orig/t/highlight2.t Syntax-Highlight-Engine-Simple-0.09-0/t/highlight2.t --- Syntax-Highlight-Engine-Simple-0.09-0-orig/t/highlight2.t 2008-07-19 21:04:29.000000000 -0700 +++ Syntax-Highlight-Engine-Simple-0.09-0/t/highlight2.t 2016-09-01 21:50:20.000000000 -0700 @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 3; use Syntax::Highlight::Engine::Simple; -use encoding 'utf8'; +use utf8; binmode(STDIN, ":utf8"); binmode(STDOUT, ":utf8"); binmode(STDERR, ":utf8");