summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2000-09-01 10:54:04 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2000-09-01 10:54:04 +0000
commit53d620a5fb1ddcdb1d7ce9e659f5eafcd957309f (patch)
treeb1e7e9f8eda5b07f5a2273b43009571f07d7edfb /lib
parent35cf65631c97a5ebb2ef80730d42a75d477abfa9 (diff)
downloadsrc-test2-53d620a5fb1ddcdb1d7ce9e659f5eafcd957309f.tar.gz
src-test2-53d620a5fb1ddcdb1d7ce9e659f5eafcd957309f.zip
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/nls/msgcat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index cb61b140142b..5632ad37ea3e 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -108,7 +108,8 @@ int type;
if (type == NL_CAT_LOCALE)
lang = setlocale(LC_MESSAGES, NULL);
else {
- if ((lang = (char *) getenv("LANG")) == NULL)
+ if ((lang = (char *) getenv("LANG")) == NULL ||
+ strchr(lang, '/') != NULL)
lang = "C";
}
if ((nlspath = (char *) getenv("NLSPATH")) == NULL