aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2014-03-03 15:13:37 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2014-03-03 15:14:26 +0100
commit30f17e9556e9a415616515db738c063159d662a8 (patch)
treeb5d4bbb3d144da508cd39f61f6d88e67ec324aaf
parentecd8c3affcbf39de2bdbfe347ae014abb709ab5d (diff)
downloadbusybox-w32-30f17e9556e9a415616515db738c063159d662a8.tar.gz
busybox-w32-30f17e9556e9a415616515db738c063159d662a8.tar.bz2
busybox-w32-30f17e9556e9a415616515db738c063159d662a8.zip
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>
-rw-r--r--miscutils/man.c3
1 files changed, 2 insertions, 1 deletions
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)
106 /* "2>&1" is added so that nroff errors are shown in pager too. 106 /* "2>&1" is added so that nroff errors are shown in pager too.
107 * Otherwise it may show just empty screen */ 107 * Otherwise it may show just empty screen */
108 cmd = xasprintf( 108 cmd = xasprintf(
109 man ? "gtbl | nroff -Tlatin1 -mandoc 2>&1 | %s" 109 /* replaced -Tlatin1 with -Tascii for non-UTF8 displays */
110 man ? "gtbl | nroff -Tascii -mandoc 2>&1 | %s"
110 : "%s", 111 : "%s",
111 pager); 112 pager);
112 system(cmd); 113 system(cmd);