diff --git a/htop-0.8.1-nonprint.patch b/htop-0.8.1-nonprint.patch new file mode 100644 index 0000000..cbebc06 --- /dev/null +++ b/htop-0.8.1-nonprint.patch @@ -0,0 +1,11 @@ +--- RichString.c.orig 2008-03-09 03:23:49.000000000 +0100 ++++ RichString.c 2008-11-18 12:30:21.000000000 +0100 +@@ -89,7 +89,7 @@ + inline void RichString_appendn(RichString* this, int attrs, char* data_c, int len) { + int last = MIN(RICHSTRING_MAXLEN - 1, len + this->len); + for (int i = this->len, j = 0; i < last; i++, j++) +- this->chstr[i] = data_c[j] | attrs; ++ this->chstr[i] = ((data_c[j] > 31) ? data_c[j] : '?' ) | attrs; + this->chstr[last] = 0; + this->len = last; + } diff --git a/htop.spec b/htop.spec index 618e2f2..aba0455 100644 --- a/htop.spec +++ b/htop.spec @@ -1,6 +1,6 @@ Name: htop Version: 0.8.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Interactive process viewer Summary(pl): Interaktywna przeglądarka procesów @@ -8,6 +8,7 @@ Group: Applications/System License: GPL+ URL: http://htop.sourceforge.net/ Source0: http://download.sourceforge.net/htop/%{name}-%{version}.tar.gz +Patch0: %{name}-0.8.1-nonprint.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: desktop-file-utils @@ -24,6 +25,7 @@ do top(1). %prep %setup -q +%patch0 -p0 sed -i s#"INSTALL_DATA = @INSTALL_DATA@"#"INSTALL_DATA = @INSTALL_DATA@ -p"# Makefile.in sed -i -e '2,3d' -e '9d' htop.desktop @@ -61,6 +63,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Nov 18 2008 Adam Miller - 0.8.1-2 +- non-printable character filter patch (#504144) +- Rafal fixed the bug, I just updated the EL packages. + * Tue Oct 4 2008 Adam Miller - 0.8.1-1 - Backport of Rafal Posta's upstream fedora package