From dffc58c1ce4aa17869c7ff9394c954f748c61c52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 1 May 2008 22:38:37 +0000 Subject: [PATCH] * if built with non-threaded locale, we need to sanitize the getenv("LANG") --- webcit/gettext.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webcit/gettext.c b/webcit/gettext.c index f782d5050..9d3833cad 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -197,12 +197,18 @@ void httplang_to_locale(char *LocaleString) */ void offer_languages(void) { int i; +#ifndef HAVE_USELOCALE + char *Lang = getenv("LANG"); + + if (Lang == NULL) + Lang = "C"; +#endif wprintf("