File: test_locale.diff

package info (click to toggle)
request-tracker4 4.4.6%2Bdfsg-1.1%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 63,472 kB
  • sloc: javascript: 130,444; perl: 65,299; sh: 1,322; makefile: 471; python: 37; php: 30
file content (28 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 35b08ce45e418321c9cbc53debf035e7fdf12c60 Mon Sep 17 00:00:00 2001
From: gregor herrmann <gregoa@debian.org>
Date: Tue, 11 Oct 2016 20:40:39 +0200
Subject: set LC_ALL to C

LANG overrides only not set LC_variables, so if LC_CTYPE is set in the
environment, it persists and tons of tests fail.

Origin: vendor
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-10-11
Patch-Name: test_locale.diff
---
 lib/RT/Test.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 0218ad33..c46f7568 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -114,6 +114,7 @@ my @ports; # keep track of all the random ports we used
 BEGIN {
     delete $ENV{$_} for qw/LANGUAGE LC_ALL LC_MESSAGES LANG/;
     $ENV{LANG} = "C";
+    $ENV{LC_ALL} = "C";
 };
 
 sub import {