aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2002-01-05 16:17:30 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2002-01-05 16:17:30 +0000
commit9b9987cebeaaa1511ec4c8244ab2f61032ac22f2 (patch)
treeb8ef977aef3ab5525330b6dd26d1c29de372b784 /gnu/usr.bin/man
parent503d025ed68db59d9ca92d8161edbe89f56fe94e (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/man')
-rw-r--r--gnu/usr.bin/man/man/man.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c
index 010395323383..8edb48c86dba 100644
--- a/gnu/usr.bin/man/man/man.c
+++ b/gnu/usr.bin/man/man/man.c
@@ -101,7 +101,10 @@ struct ltable {
};
static struct ltable ltable[] = {
{"KOI8-R", "koi8-r"},
+ {"ISO8859-1", "latin1"},
{"ISO_8859-1", "latin1"},
+ {"ISO8859-15", "latin1"},
+ {"ISO_8859-15", "latin1"},
{NULL}
};
#endif
@@ -464,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 {