diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1999-06-07 19:23:04 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1999-06-07 19:23:04 +0000 |
| commit | e5eeb99e2b2ce106dffc512556fcb7d98262e452 (patch) | |
| tree | 6c59b1e0fb7ed971a3b9fbad07388f696598f014 /gnu | |
| parent | ccb357e4ea473d9531f9e9c773346bcd22d70593 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/Makefile.inc | 4 | ||||
| -rw-r--r-- | gnu/usr.bin/man/man/man.c | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gnu/usr.bin/man/Makefile.inc b/gnu/usr.bin/man/Makefile.inc index 25ba7bb72fc91..fcaa075872644 100644 --- a/gnu/usr.bin/man/Makefile.inc +++ b/gnu/usr.bin/man/Makefile.inc @@ -11,7 +11,9 @@ troff= /usr/bin/groff -man nroff= /usr/bin/groff -Wall -mtty-char -man apropos= /usr/bin/apropos whatis= /usr/bin/whatis -neqn= /usr/bin/eqn -Tascii +eqn= /usr/bin/eqn +# -Tascii or localized encoding added automatically +neqn= /usr/bin/eqn tbl= /usr/bin/tbl col= /usr/bin/col vgrind= /usr/bin/vgrind diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c index d38047745d5cc..92e9f840ff42e 100644 --- a/gnu/usr.bin/man/man/man.c +++ b/gnu/usr.bin/man/man/man.c @@ -926,8 +926,17 @@ parse_roff_directive (cp, file, buf, bufsize) if (troff) add_directive (&first, EQN, file, buf, bufsize); - else + else { +#ifdef __FreeBSD__ + char lbuf[FILENAME_MAX]; + + snprintf(lbuf, sizeof(lbuf), "%s%s", NEQN, + locale_opts == NULL ? " -Tascii" : locale_opts); + add_directive (&first, lbuf, file, buf, bufsize); +#else add_directive (&first, NEQN, file, buf, bufsize); +#endif + } break; |
