diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-09-01 10:54:04 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-09-01 10:54:04 +0000 |
commit | 53d620a5fb1ddcdb1d7ce9e659f5eafcd957309f (patch) | |
tree | b1e7e9f8eda5b07f5a2273b43009571f07d7edfb /lib/libc/nls | |
parent | 35cf65631c97a5ebb2ef80730d42a75d477abfa9 (diff) | |
download | src-test2-53d620a5fb1ddcdb1d7ce9e659f5eafcd957309f.tar.gz src-test2-53d620a5fb1ddcdb1d7ce9e659f5eafcd957309f.zip |
Notes
Diffstat (limited to 'lib/libc/nls')
-rw-r--r-- | lib/libc/nls/msgcat.c | 3 |
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 |