Package: kde-runtime / 4:17.08.3-2.1

use_the_correct_locale.patch Patch series | 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
From: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Date: Wed, 13 Apr 2016 13:53:28 +0200
Subject: use_the_correct_locale

Description: Use the correct locale.
 The test was expecting a specific locale. Everything seems to indicate
 that any UTF-8 enabled locale would work for this testcases, so use
 C.UTF-8 and avoid to have to depend on all locales.
Author: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Forwarded: https://bugs.kde.org/show_bug.cgi?id=329983
Last-Update: 2014-01-14
---
 kioslave/trash/tests/testtrash.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kioslave/trash/tests/testtrash.cpp b/kioslave/trash/tests/testtrash.cpp
index bccb0e5a57..f99f0f02e8 100644
--- a/kioslave/trash/tests/testtrash.cpp
+++ b/kioslave/trash/tests/testtrash.cpp
@@ -58,7 +58,7 @@ int initLocale()
 {
 #ifdef UTF8TEST
     // Assume utf8 system
-    setenv( "LC_ALL", "en_US.utf-8", 1 );
+    setenv( "LC_ALL", "C.UTF-8", 1 );
     setenv( "KDE_UTF8_FILENAMES", "true", 1 );
 #else
     // Ensure a known QFile::encodeName behavior for trashUtf8FileFromHome