mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Treat empty lang as "C" lang too
This commit is contained in:
parent
9c13074187
commit
56338d5acb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue