man: default to ascii
Default to ascii instead of latin1. Otherwise man pages can be displayed incorrectly. E.g. bullets show as "<B7>". Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ecd8c3affc
commit
30f17e9556
@ -106,7 +106,8 @@ static int run_pipe(const char *pager, char *man_filename, int man, int level)
|
|||||||
/* "2>&1" is added so that nroff errors are shown in pager too.
|
/* "2>&1" is added so that nroff errors are shown in pager too.
|
||||||
* Otherwise it may show just empty screen */
|
* Otherwise it may show just empty screen */
|
||||||
cmd = xasprintf(
|
cmd = xasprintf(
|
||||||
man ? "gtbl | nroff -Tlatin1 -mandoc 2>&1 | %s"
|
/* replaced -Tlatin1 with -Tascii for non-UTF8 displays */
|
||||||
|
man ? "gtbl | nroff -Tascii -mandoc 2>&1 | %s"
|
||||||
: "%s",
|
: "%s",
|
||||||
pager);
|
pager);
|
||||||
system(cmd);
|
system(cmd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user