[libsyntax-highlight-engine-simple-perl] 01/05: Add patch to drop encoding pragma from test files

gregor herrmann gregoa at debian.org
Fri Jun 23 18:16:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libsyntax-highlight-engine-simple-perl.

commit 40ae221cfe82debf76eceaa3b23f862983e1f021
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Jun 23 20:11:03 2017 +0200

    Add patch to drop encoding pragma from test files
    
    which is removed in perl 5.26.
    
    Closes: #826447
---
 debian/patches/praga-encoding-removed.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/praga-encoding-removed.patch b/debian/patches/praga-encoding-removed.patch
new file mode 100644
index 0000000..05df3b8
--- /dev/null
+++ b/debian/patches/praga-encoding-removed.patch
@@ -0,0 +1,29 @@
+Description: The encoding pragma is gone in 5.26
+ t/highlight2.t is plain ascii, t/highlight.t is utf-8.
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/826447
+Forwarded: no, seems to be gone from both MetaCPAN and search.cpan.org
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2017-06-23
+
+--- a/t/highlight.t
++++ b/t/highlight.t
+@@ -2,7 +2,7 @@
+ 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");
+--- a/t/highlight2.t
++++ b/t/highlight2.t
+@@ -2,7 +2,6 @@
+ use warnings;
+ use Test::More tests => 3;
+ use Syntax::Highlight::Engine::Simple;
+-use encoding 'utf8';
+ binmode(STDIN,	":utf8");
+ binmode(STDOUT,	":utf8");
+ binmode(STDERR,	":utf8");
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0715a5e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+praga-encoding-removed.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsyntax-highlight-engine-simple-perl.git



More information about the Pkg-perl-cvs-commits mailing list