diff --git a/less.spec b/less.spec index 80b202f..a0e549b 100644 --- a/less.spec +++ b/less.spec @@ -1,7 +1,7 @@ Summary: A text file browser similar to more, but better Name: less Version: 436 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv3+ Group: Applications/Text Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz @@ -71,6 +71,10 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d rm -rf $RPM_BUILD_ROOT %changelog +* Wed Apr 13 2011 Vojtech Vitek (V-Teq) - 436-10 +- Don't convert files with UTF-16/UTF-32 string in filename + Resolve: #638312 + * Tue Feb 15 2011 Vojtech Vitek (V-Teq) - 436-9 - Clean lesspipe.sh script - Split case for compressed and plain troff files diff --git a/lesspipe.sh b/lesspipe.sh index c543c0d..819ce62 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -60,7 +60,7 @@ case "$1" in fi ;; *) if [ -x /usr/bin/file -a -x /usr/bin/iconv -a -x /usr/bin/cut ]; then - case `file "$1"` in + case `file -b "$1"` in *UTF-16*) conv='UTF-16' ;; *UTF-32*) conv='UTF-32' ;; esac