From: Denys Vlasenko Date: Mon, 3 Mar 2014 14:13:37 +0000 (+0100) Subject: man: default to ascii X-Git-Tag: 1_23_0~165 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30f17e9556e9a415616515db738c063159d662a8;p=oweals%2Fbusybox.git man: default to ascii Default to ascii instead of latin1. Otherwise man pages can be displayed incorrectly. E.g. bullets show as "". Signed-off-by: Aaro Koskinen Signed-off-by: Denys Vlasenko --- diff --git a/miscutils/man.c b/miscutils/man.c index f046e24f3..5c1fa2c9d 100644 --- a/miscutils/man.c +++ b/miscutils/man.c @@ -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. * Otherwise it may show just empty screen */ 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", pager); system(cmd);