mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
In debug mode don't print error for C,POSIX,ASCII,US-ASCII locales
This commit is contained in:
parent
deb193d250
commit
baf58b5622
1 changed files with 7 additions and 2 deletions
|
|
@ -467,8 +467,13 @@ man_getopt (argc, argv)
|
|||
|| strlen(tmp + 1) < 4
|
||||
|| tmp[3] != '.') {
|
||||
if (debug) {
|
||||
errno = EINVAL;
|
||||
perror ("ctype locale env");
|
||||
if (strcmp(locale, "C") != 0 &&
|
||||
strcmp(locale, "POSIX") != 0 &&
|
||||
strcmp(locale, "ASCII") != 0 &&
|
||||
strcmp(locale, "US-ASCII") != 0) {
|
||||
errno = EINVAL;
|
||||
perror ("ctype locale env");
|
||||
}
|
||||
}
|
||||
locale = NULL;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue