In debug mode don't print error for C,POSIX,ASCII,US-ASCII locales

This commit is contained in:
Andrey A. Chernov 2001-06-10 23:42:31 +00:00
parent deb193d250
commit baf58b5622

View File

@ -467,8 +467,13 @@ man_getopt (argc, argv)
|| strlen(tmp + 1) < 4 || strlen(tmp + 1) < 4
|| tmp[3] != '.') { || tmp[3] != '.') {
if (debug) { if (debug) {
errno = EINVAL; if (strcmp(locale, "C") != 0 &&
perror ("ctype locale env"); strcmp(locale, "POSIX") != 0 &&
strcmp(locale, "ASCII") != 0 &&
strcmp(locale, "US-ASCII") != 0) {
errno = EINVAL;
perror ("ctype locale env");
}
} }
locale = NULL; locale = NULL;
} else { } else {