[PATCH] man: default to ascii
Aaro Koskinen
aaro.koskinen at iki.fi
Sun Mar 2 23:56:59 UTC 2014
Default to ascii instead of latin1. Otherwise man pages will be displayed
incorrectly on UTF-8 terminals. E.g. bullets show as "<B7>".
Signed-off-by: Aaro Koskinen <aaro.koskinen at iki.fi>
---
miscutils/man.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/miscutils/man.c b/miscutils/man.c
index d3e832b..7c6f737 100644
--- a/miscutils/man.c
+++ b/miscutils/man.c
@@ -106,7 +106,7 @@ 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.
* Otherwise it may show just empty screen */
cmd = xasprintf(
- man ? "gtbl | nroff -Tlatin1 -mandoc 2>&1 | %s"
+ man ? "gtbl | nroff -Tascii -mandoc 2>&1 | %s"
: "%s",
pager);
system(cmd);
--
1.9.0
More information about the busybox
mailing list