summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-06-10 23:42:31 +0000
committerache <ache@FreeBSD.org>2001-06-10 23:42:31 +0000
commit7ace80bc8ffd2e201d49d25f91453b1b59b9d4a2 (patch)
treeda0a7b11239fa1ffea50e26af884aa3e1b5ae67c /gnu
parent7e52b00f286cf2359ea3ee3e452c9153335adcdd (diff)
downloadFreeBSD-src-7ace80bc8ffd2e201d49d25f91453b1b59b9d4a2.zip
FreeBSD-src-7ace80bc8ffd2e201d49d25f91453b1b59b9d4a2.tar.gz
In debug mode don't print error for C,POSIX,ASCII,US-ASCII locales
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 7c9481c..8edb48c 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 {
OpenPOWER on IntegriCloud