File: test_locale.diff

package info (click to toggle)
request-tracker5 5.0.7%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 80,216 kB
  • sloc: javascript: 191,898; perl: 87,146; sh: 1,412; makefile: 487; python: 37; php: 15
file content (29 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
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
29
From 653067154b697fb4a6a1d72665b8dd3424cd45b9 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
Forwarded: not-needed
---
 lib/RT/Test.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index ef6187e0..3954dd54 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 {