summaryrefslogtreecommitdiffstats
path: root/usr.bin/man/man.sh
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-12-02 23:24:57 +0000
committerbapt <bapt@FreeBSD.org>2014-12-02 23:24:57 +0000
commit919f2a28755126f55b458d6553ac5e10b76203b3 (patch)
tree6b285eca5de51692bcaade66a629a2b84eadb8c7 /usr.bin/man/man.sh
parentd24ff3fdf2f10c9b05c568b96812b7560b5c652a (diff)
parente00686f8f18c8c3eb3a800468a031699ed0bbc8f (diff)
downloadFreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.zip
FreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.tar.gz
Update to mandoc cvs version as of 20141201
- Compatiblity with existing manpages has been improved - Now support ".so" directive with compressed manpages (which fixes a regression we have since we have new man(1))
Diffstat (limited to 'usr.bin/man/man.sh')
-rwxr-xr-xusr.bin/man/man.sh19
1 files changed, 3 insertions, 16 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 2531c9a..de03f40 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -279,7 +279,7 @@ man_check_for_so() {
# Usage: man_display_page
# Display either the manpage or catpage depending on the use_cat variable
man_display_page() {
- local IFS pipeline preconv_enc testline
+ local IFS pipeline testline
# We are called with IFS set to colon. This causes really weird
# things to happen for the variables that have spaces in them.
@@ -311,21 +311,8 @@ man_display_page() {
return
fi
- case "${manpage}" in
- *.${man_charset}/*)
- case "$man_charset" in
- ISO8859-1) preconv_enc="latin-1" ;;
- ISO8859-15) preconv_enc="latin-1" ;;
- UTF-8) preconv_enc="utf-8" ;;
- esac
- ;;
- esac
-
- if [ -n "$preconv_enc" ]; then
- pipeline="preconv -e $preconv_enc |"
- fi
- testline="$pipeline mandoc -Tlint -Werror 2>/dev/null"
- pipeline="$pipeline mandoc -Tlocale | $MANPAGER"
+ testline="mandoc -Tlint -Werror 2>/dev/null"
+ pipeline="mandoc -Tlocale | $MANPAGER"
if ! eval "$cattool $manpage | $testline" ;then
if which -s groff; then
OpenPOWER on IntegriCloud