summaryrefslogtreecommitdiff
path: root/lib/libintl
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2002-02-13 08:01:13 +0000
committeryamt <yamt@NetBSD.org>2002-02-13 08:01:13 +0000
commit6c208635b5162a2dd9237e10ddd4fcba247c7994 (patch)
treeef0e5c390d5856e97eefefeb088a5e263ceaa7dc /lib/libintl
parent9ddf6eb6f64cf1204f0d78c06ed7be890aa798a5 (diff)
- give the precedence to LC_ALL environment variable
than other LC_* variables.
Diffstat (limited to 'lib/libintl')
-rw-r--r--lib/libintl/gettext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libintl/gettext.c b/lib/libintl/gettext.c
index 3c41627b244..c8facc07f7e 100644
--- a/lib/libintl/gettext.c
+++ b/lib/libintl/gettext.c
@@ -1,4 +1,4 @@
-/* $NetBSD: gettext.c,v 1.12 2001/12/29 05:54:36 yamt Exp $ */
+/* $NetBSD: gettext.c,v 1.13 2002/02/13 08:01:13 yamt Exp $ */
/*-
* Copyright (c) 2000, 2001 Citrus Project,
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: gettext.c,v 1.12 2001/12/29 05:54:36 yamt Exp $");
+__RCSID("$NetBSD: gettext.c,v 1.13 2002/02/13 08:01:13 yamt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -535,9 +535,9 @@ static const char *get_lang_env(const char *category_name)
return lang;
/* 2. if LANGUAGE isn't set, see LC_ALL, LC_xxx, LANG. */
- lang = getenv(category_name);
+ lang = getenv("LC_ALL");
if (!lang)
- lang = getenv("LC_ALL");
+ lang = getenv(category_name);
if (!lang)
lang = getenv("LANG");