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

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=13afe924a603c2645eb7b886b1e110220248efa4

commit 13afe924a603c2645eb7b886b1e110220248efa4
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Oct 10 00:06:41 2018 +0200

    build: Set locale for CPAN tests to C
    
    The test suite expects to run under the C locale.
    
    Fixes: https://rt.cpan.org/Ticket/Display.html?id=127314
---
 debian/changelog    | 1 +
 scripts/Build.PL.in | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0773799db..495949961 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,7 @@ dpkg (1.19.3) UNRELEASED; urgency=medium
       instead, and does not require leaving an unquoted variable around.
     - run-script: Add «set -e».
     - Build.PL: Set environment variables only for CPAN tests.
+    - Build.PL: Set locale for CPAN tests to C. Foxes CPAN#127314.
 
   [ Updated programs translations ]
   * German (Sven Joachim).
diff --git a/scripts/Build.PL.in b/scripts/Build.PL.in
index 6418d0d36..b8f62d26f 100644
--- a/scripts/Build.PL.in
+++ b/scripts/Build.PL.in
@@ -49,6 +49,8 @@ my $class = Module::Build->subclass(
         sub ACTION_test {
             my $self = shift;
 
+            local $ENV{LANG} = 'C';
+            local $ENV{LC_ALL} = 'C';
             local $ENV{DPKG_TEST_MODE} = 'cpan';
             local $ENV{DPKG_DATADIR} = 'data';
             local $ENV{DPKG_ORIGINS_DIR} = 't/origins';

-- 
Dpkg.Org's dpkg

Reply via email to