diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-09-01 11:09:34 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-09-01 11:09:34 +0000 |
| commit | 016de69d9e19269b66164f885ede3f4f62d0af98 (patch) | |
| tree | 3a08ec2ff04ddbc3ec27fd6b9b4ec4037893ecf3 /lib | |
| parent | 53d620a5fb1ddcdb1d7ce9e659f5eafcd957309f (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/nls/msgcat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c index 5632ad37ea3e..4dba0cdab529 100644 --- a/lib/libc/nls/msgcat.c +++ b/lib/libc/nls/msgcat.c @@ -108,10 +108,11 @@ int type; if (type == NL_CAT_LOCALE) lang = setlocale(LC_MESSAGES, NULL); else { - if ((lang = (char *) getenv("LANG")) == NULL || - strchr(lang, '/') != NULL) + if ((lang = (char *) getenv("LANG")) == NULL) lang = "C"; } + if (strchr(lang, '/') != NULL) + lang = "C"; if ((nlspath = (char *) getenv("NLSPATH")) == NULL #ifndef __NETBSD_SYSCALLS || issetugid() |
