diff -Nru libfile-fu-perl-0.0.8/debian/changelog libfile-fu-perl-0.0.8/debian/changelog --- libfile-fu-perl-0.0.8/debian/changelog 2015-05-31 15:37:09.000000000 +0000 +++ libfile-fu-perl-0.0.8/debian/changelog 2015-12-08 21:41:46.000000000 +0000 @@ -1,3 +1,12 @@ +libfile-fu-perl (0.0.8-3) unstable; urgency=medium + + * Team upload. + * Set the locale to C for test scripts that hardcode English error messages. + (Closes: #807438) + * Make the package autopkgtestable. + + -- Niko Tyni Tue, 08 Dec 2015 23:37:30 +0200 + libfile-fu-perl (0.0.8-2) unstable; urgency=low [ gregor herrmann ] diff -Nru libfile-fu-perl-0.0.8/debian/control libfile-fu-perl-0.0.8/debian/control --- libfile-fu-perl-0.0.8/debian/control 2015-05-31 15:37:09.000000000 +0000 +++ libfile-fu-perl-0.0.8/debian/control 2015-12-08 21:37:18.000000000 +0000 @@ -14,6 +14,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libfile-fu-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libfile-fu-perl.git Homepage: https://metacpan.org/release/File-Fu +Testsuite: autopkgtest-pkg-perl Package: libfile-fu-perl Architecture: all diff -Nru libfile-fu-perl-0.0.8/debian/patches/0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch libfile-fu-perl-0.0.8/debian/patches/0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch --- libfile-fu-perl-0.0.8/debian/patches/0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch 1970-01-01 00:00:00.000000000 +0000 +++ libfile-fu-perl-0.0.8/debian/patches/0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch 2015-12-08 21:31:57.000000000 +0000 @@ -0,0 +1,50 @@ +From 048b54ed446864f0067736fdda3975f4d7668e23 Mon Sep 17 00:00:00 2001 +From: Niko Tyni +Date: Tue, 8 Dec 2015 23:21:01 +0200 +Subject: [PATCH] Set the locale to C for test scripts that hardcode English + error messages + +This fixes test failures in other locales, like fr_FR.UTF-8. + +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=110210 +Bug-Debian: https://bugs.debian.org/807438 +--- + t/dir.t | 5 +++++ + t/errors.t | 5 +++++ + 2 files changed, 10 insertions(+) + +diff --git a/t/dir.t b/t/dir.t +index 856fe0f..41aed6c 100755 +--- a/t/dir.t ++++ b/t/dir.t +@@ -7,6 +7,11 @@ use Test::More qw(no_plan); + + use File::Fu; + ++use POSIX qw(locale_h); ++ ++# tests hardcode English error messages ++setlocale(LC_ALL, "C"); ++ + { + my $d = File::Fu->dir("foo." . $$); + $d->e and $d->rmdir; +diff --git a/t/errors.t b/t/errors.t +index 635bf9d..26c6978 100755 +--- a/t/errors.t ++++ b/t/errors.t +@@ -7,6 +7,11 @@ use Test::More qw(no_plan); + + use File::Fu; + ++use POSIX qw(locale_h); ++ ++# tests hardcode English error messages ++setlocale(LC_ALL, "C"); ++ + { # invalid ops + my $f = File::Fu->dir; + +-- +2.6.2 + diff -Nru libfile-fu-perl-0.0.8/debian/patches/series libfile-fu-perl-0.0.8/debian/patches/series --- libfile-fu-perl-0.0.8/debian/patches/series 2015-05-31 15:37:09.000000000 +0000 +++ libfile-fu-perl-0.0.8/debian/patches/series 2015-12-08 21:37:18.000000000 +0000 @@ -1 +1,2 @@ spelling.patch +0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch diff -Nru libfile-fu-perl-0.0.8/debian/tests/pkg-perl/smoke-files libfile-fu-perl-0.0.8/debian/tests/pkg-perl/smoke-files --- libfile-fu-perl-0.0.8/debian/tests/pkg-perl/smoke-files 1970-01-01 00:00:00.000000000 +0000 +++ libfile-fu-perl-0.0.8/debian/tests/pkg-perl/smoke-files 2015-12-08 21:37:18.000000000 +0000 @@ -0,0 +1,3 @@ +t +# t/basic.t looks for this +Build.PL diff -Nru libfile-fu-perl-0.0.8/debian/tests/pkg-perl/syntax-skip libfile-fu-perl-0.0.8/debian/tests/pkg-perl/syntax-skip --- libfile-fu-perl-0.0.8/debian/tests/pkg-perl/syntax-skip 1970-01-01 00:00:00.000000000 +0000 +++ libfile-fu-perl-0.0.8/debian/tests/pkg-perl/syntax-skip 2015-12-08 21:41:46.000000000 +0000 @@ -0,0 +1,3 @@ +# Class::Accessor::Classy seems to disagree with 'perl -c' +# File::Fu::Dir::FindKnob::--accessors::new is already defined at lib/File/Fu/Dir.pm line 717. +File/Fu/Dir.pm