diff options
author | ache <ache@FreeBSD.org> | 1999-06-07 19:23:04 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-06-07 19:23:04 +0000 |
commit | 958c8db399b114bdedf36c3cb1449019ea17e13e (patch) | |
tree | 55368093f9f58efa58ca341d566c750bae98bf0e /gnu | |
parent | dc1229d27bddbf962473577c7831b6e2b035b441 (diff) | |
download | FreeBSD-src-958c8db399b114bdedf36c3cb1449019ea17e13e.zip FreeBSD-src-958c8db399b114bdedf36c3cb1449019ea17e13e.tar.gz |
Localize NEQN part too
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 25ba7bb..fcaa075 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 d380477..92e9f84 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; |