From 6d7e9d23705d958cea94e73d076ed3dc89a49f79 Mon Sep 17 00:00:00 2001 From: Viktor Jancik Date: Sat, 22 Aug 2015 02:52:22 +0200 Subject: [PATCH] Fixed displaying of nonascii characters #1241543 --- less.spec | 4 +++- lesspipe.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/less.spec b/less.spec index eb34fb2..bcbfb90 100644 --- a/less.spec +++ b/less.spec @@ -21,6 +21,7 @@ Patch10: less-458-lesskey-usage.patch Patch11: less-458-old-bot-in-help.patch URL: http://www.greenwoodsoftware.com/less/ Requires: groff-base +Requires: man-db BuildRequires: ncurses-devel BuildRequires: autoconf automake libtool @@ -70,10 +71,11 @@ install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc/profile.d %{_mandir}/man1/* %changelog -* Mon Aug 21 2015 Viktor Jancik - 479-2 +* Mon Aug 22 2015 Viktor Jancik - 479-2 - Updated spec file to comply with current Fedora Packaging Guidelines Added missing documentation files - Fixed less profile.d scripts +- Fixed preprocessing of man pages with special characters (#1241543) * Tue Jul 07 2015 Fedora Release Monitoring - 479-1 - Update to 479 (#1240456) diff --git a/lesspipe.sh b/lesspipe.sh index a2c319a..295ed2a 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -38,12 +38,12 @@ case "$1" in *.xz|*.lzma) DECOMPRESSOR="xz -dc" ;; esac if [ -n "$DECOMPRESSOR" ] && $DECOMPRESSOR -- "$1" | file - | grep -q troff; then - $DECOMPRESSOR -- "$1" | groff -Tascii -mandoc - + $DECOMPRESSOR -- "$1" | man -P cat -l - exit $? fi ;;& *.[1-9n]|*.[1-9]x|*.man) if file "$1" | grep -q troff; then - groff -Tascii -mandoc "$1" | cat -s + man -P cat -l "$1" exit $? fi ;;& *.tar) tar tvvf "$1"; exit $? ;;