summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2016-08-09 18:11:18 +0200
committerDidier Raboud <odyx@debian.org>2017-10-17 08:43:33 +0200
commit47976abcea67ea848a948dce2d166a4d5311d11a (patch)
treec7a7408526ddc894672386b2c135f8bec8116827
parentd52d6e5ffc7223ecadc92ce76c6d8584016e4037 (diff)
Tests: Force LC_* environment variables when testing (non) l10n'isation.
Permits building in non-"C" environments. Origin: vendor Last-Update: 2015-02-10 Patch-Name: tests-fix-ppdLocalize-on-unclean-env.patch Gbp-Pq: Name tests-fix-ppdLocalize-on-unclean-env.patch
-rw-r--r--cups/testppd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cups/testppd.c b/cups/testppd.c
index e1b51564f..d00035f71 100644
--- a/cups/testppd.c
+++ b/cups/testppd.c
@@ -503,6 +503,14 @@ main(int argc, /* I - Number of command-line arguments */
* 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"))