Treat empty lang as "C" lang too

This commit is contained in:
ache 2000-09-01 13:19:18 +00:00
parent 5db285ce81
commit 6d6923050a

View File

@ -91,7 +91,7 @@ int type;
lang = setlocale(LC_MESSAGES, NULL);
else
lang = getenv("LANG");
if (lang == NULL || strchr(lang, '/') != NULL)
if (lang == NULL || !*lang || strchr(lang, '/') != NULL)
lang = "C";
if ((nlspath = (char *) getenv("NLSPATH")) == NULL
#ifndef __NETBSD_SYSCALLS