This is an automated email from the git hooks/post-receive script. ntyni pushed a commit to branch master in repository libfile-fu-perl.
commit 83efe0835ee9f291cab3fb6c5de6af5ae0f684d7 Author: Niko Tyni <nt...@debian.org> Date: Tue Dec 8 23:21:01 2015 +0200 Set the locale to C for test scripts that hardcode English error messages Closes: #807438 --- ...ale-to-C-for-test-scripts-that-hardcode-E.patch | 50 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 51 insertions(+) diff --git a/debian/patches/0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch b/debian/patches/0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch new file mode 100644 index 0000000..fc95eb0 --- /dev/null +++ b/debian/patches/0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch @@ -0,0 +1,50 @@ +From 048b54ed446864f0067736fdda3975f4d7668e23 Mon Sep 17 00:00:00 2001 +From: Niko Tyni <nt...@debian.org> +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 --git a/debian/patches/series b/debian/patches/series index 5299247..1b444cc 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ spelling.patch +0001-Set-the-locale-to-C-for-test-scripts-that-hardcode-E.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libfile-fu-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits