From e5eeb99e2b2ce106dffc512556fcb7d98262e452 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 7 Jun 1999 19:23:04 +0000 Subject: [PATCH] Localize NEQN part too --- gnu/usr.bin/man/Makefile.inc | 4 +++- 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 25ba7bb72fc9..fcaa07587264 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 d38047745d5c..92e9f840ff42 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;