summaryrefslogtreecommitdiff
path: root/debian/patches/tests-fix-ppdLocalize-on-unclean-env.patch
blob: 9e95833e9d9eee873b6489d0f8107232ef520264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Force LC_* environment variables when testing (non) l10n'isation.
 Permits building in non-"C" environments.
Author: Didier Raboud <odyx@debian.org>
Origin: vendor
Last-Update: 2012-09-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/cups/testppd.c
+++ b/cups/testppd.c
@@ -496,6 +496,14 @@
     * Test localization...
     */
 
+   /*
+    * Enforce void localization
+    */
+    putenv("LANG=C");
+    putenv("LC_ALL=C");
+    putenv("LC_CTYPE=C");
+    putenv("LC_MESSAGES=C");
+
     fputs("ppdLocalizeIPPReason(text): ", stdout);
     if (ppdLocalizeIPPReason(ppd, "foo", NULL, buffer, sizeof(buffer)) &&
         !strcmp(buffer, "Foo Reason"))