rpms/python-feedparser/F-9 feedparser_utf8_decoding.patch, NONE, 1.1 python-feedparser.spec, 1.4, 1.5
Konstantin Ryabitsev
icon at fedoraproject.org
Sat Dec 27 18:43:40 UTC 2008
Author: icon
Update of /cvs/extras/rpms/python-feedparser/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9052/F-9
Modified Files:
python-feedparser.spec
Added Files:
feedparser_utf8_decoding.patch
Log Message:
Add patch for a utf8 decoding issue (#477024)
feedparser_utf8_decoding.patch:
--- NEW FILE feedparser_utf8_decoding.patch ---
--- /var/lib/python-support/python2.5/feedparser.py 2008-01-23 20:10:27.000000000 +0100
+++ feedparser.py 2008-07-28 11:01:38.000000000 +0200
@@ -1455,7 +1455,7 @@
# thanks to Kevin Marks for this breathtaking hack to deal with (valid) high-bit attribute values in UTF-8 feeds
for key, value in attrs:
if type(value) != type(u''):
- value = unicode(value, self.encoding)
+ value = unicode(value, self.encoding, errors='replace')
uattrs.append((unicode(key, self.encoding), value))
strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding)
if tag in self.elements_no_end_tag:
Index: python-feedparser.spec
===================================================================
RCS file: /cvs/extras/rpms/python-feedparser/F-9/python-feedparser.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- python-feedparser.spec 29 Jun 2007 20:46:15 -0000 1.4
+++ python-feedparser.spec 27 Dec 2008 18:43:10 -0000 1.5
@@ -2,13 +2,14 @@
Name: python-feedparser
Version: 4.1
-Release: 3%{?dist}
+Release: 5%{?dist}
Summary: Parse RSS and Atom feeds in Python
Group: Development/Languages
-License: BSD-ish
+License: BSD
URL: http://feedparser.org/
Source0: http://download.sourceforge.net/feedparser/feedparser-%{version}.zip
+Patch0: feedparser_utf8_decoding.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -24,6 +25,7 @@
%prep
%setup -q -c
+%patch0 -p0 -b .utf8_decoding
find -type f -exec sed -i 's/\r//' {} ';'
find -type f -exec chmod 0644 {} ';'
@@ -50,6 +52,12 @@
%changelog
+* Sat Dec 27 2008 Konstantin Ryabitsev <icon at fedoraproject.org> - 4.1-5
+- Patch for a utf8 decoding issue (#477024)
+
+* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 4.1-4
+- fix license tag
+
* Thu Jun 28 2007 Konstantin Ryabitsev <icon at fedoraproject.org> - 4.1-3
- Ghostbusting (#205413).
- Remove manual python-abi Requires.
More information about the fedora-extras-commits
mailing list