diff options
author | Didier Raboud <odyx@debian.org> | 2016-08-09 18:11:18 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2019-09-02 09:14:43 +0200 |
commit | 5a1eb134b52bb7311258f085f5276e25a9aa720a (patch) | |
tree | 089c2805a40e59f598cf97b1cd07e15d642869e7 | |
parent | ef17a9a843ba24ccc694dc69005c0a69c3227b03 (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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cups/testppd.c b/cups/testppd.c index 36707f29a..a4ab7bfaa 100644 --- a/cups/testppd.c +++ b/cups/testppd.c @@ -658,6 +658,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")) |