aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-06-10 23:42:31 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-06-10 23:42:31 +0000
commitbaf58b562274f5ceec9b8d62f9d4557abd5776dc (patch)
treeda0a7b11239fa1ffea50e26af884aa3e1b5ae67c /gnu
parentdeb193d250ed6517446b0bb578c24d49708fe5b9 (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/man/man/man.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c
index 7c9481cb10bb..8edb48c86dba 100644
--- a/gnu/usr.bin/man/man/man.c
+++ b/gnu/usr.bin/man/man/man.c
@@ -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 {