Localize NEQN part too

This commit is contained in:
Andrey A. Chernov 1999-06-07 19:23:04 +00:00
parent ccb357e4ea
commit e5eeb99e2b
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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;