Don't convert files with UTF-16/UTF-32 string in filename

This commit is contained in:
Vojtech Vitek (V-Teq) 2011-04-13 16:00:15 +02:00
parent 6ac1e2d4ae
commit a7970624af
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: A text file browser similar to more, but better
Name: less
Version: 436
Release: 10%{?dist}
Release: 11%{?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) <vvitek@redhat.com> - 436-11
- Don't convert files with UTF-16/UTF-32 string in filename
Resolve: #638312
* Tue Feb 15 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 436-10
- Clean lesspipe.sh script
- Split case for compressed and plain troff files

View File

@ -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