Merge branch '1539_utf8_man'

* 1539_utf8_man:
  Ticket #1539: Dealing with utf-8 man pages in view/open
This commit is contained in:
Slava Zanko 2014-09-02 14:34:51 +03:00
commit 903c5c926d

View File

@ -45,7 +45,7 @@ do_view_action() {
cat "${MC_EXT_FILENAME}"
;;
*)
{ zsoelim "${MC_EXT_FILENAME}" 2>/dev/null || cat "${MC_EXT_FILENAME}"; } | nroff @MAN_FLAGS@ @MANDOC@
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}"
;;
esac
;;
@ -64,7 +64,9 @@ do_view_action() {
${unpacker} "${MC_EXT_FILENAME}"
;;
*)
${unpacker} "${MC_EXT_FILENAME}" | nroff @MAN_FLAGS@ @MANDOC@
# "man" takes care of uncompressing.
# This way the stdin is left intact so the correct width is used.
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}"
;;
esac
;;