Control: tag -1 patch

On Sat, Sep 05, 2015 at 09:14:15PM +0200, gregor herrmann wrote:
> Control: tag -1 - fixed-upstream
> # (sorry)

Sorry for not checking this properly. Here's some penance for that.

The formatter_file.t thing broke with liburi-find-perl 20140709-1.
Upstream 1.11 changed the test so it now works again (but is broken
with older versions of URI::Find, which is probably not a problem.)

The unicode.t failure began with libcatalyst-perl 5.90097-1,
which has this in NEWS.Debian:

libcatalyst-perl (5.90097-1) unstable; urgency=medium

  From upstream Changes, 5.90079_001:  

  UTF-8 is now the default encoding (there used to be none...).  You can
  disable this if you need to with MyApp->config(encoding => undef) if it
  causes you trouble.

 -- gregor herrmann <gre...@debian.org>  Wed, 12 Aug 2015 11:42:15 +0200

and it can be fixed/worked around with the attached patch.

1.11 builds for me with this, will forward & upload shortly.
-- 
Niko Tyni   nt...@debian.org
>From 12ce7bb7b3dfb3b6e4caab40bb9d850f1e97735b Mon Sep 17 00:00:00 2001
From: Niko Tyni <nt...@debian.org>
Date: Sun, 6 Sep 2015 12:52:53 +0300
Subject: [PATCH] Unbreak unicode.t with newer Catalyst versions

>From Catalyst-5.90079_001 Changes:

- !!! UTF-8 is now the default encoding (there used to be none...).
  You can disable this if you need to with MyApp->config(encoding =>
  undef) if it causes you trouble.

This breaks unicode.t tests 7-8. Explicitly unset the encoding
as a fix/workaround.

Bug-Debian: https://bugs.debian.org/791520
---
 t/lib/MojoMojoTestSchema.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/lib/MojoMojoTestSchema.pm b/t/lib/MojoMojoTestSchema.pm
index 785061f..b0b53a4 100644
--- a/t/lib/MojoMojoTestSchema.pm
+++ b/t/lib/MojoMojoTestSchema.pm
@@ -124,6 +124,7 @@ sub init_schema {
             view_allowed             => 1,
             attachment_allowed       => 0,
         },
+        'encoding' => undef,
         'View::Email' => { sender => { mailer => 'Test' } },
         'system_mail' => 'admin@localhost',
     };
-- 
2.1.4

Reply via email to