rpms/python-feedparser/devel feedparser_utf8_decoding.patch, NONE, 1.1 python-feedparser.spec, 1.6, 1.7
Konstantin Ryabitsev
icon at fedoraproject.org
Sat Dec 27 18:43:41 UTC 2008
Author: icon
Update of /cvs/extras/rpms/python-feedparser/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9052/devel
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/devel/python-feedparser.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- python-feedparser.spec 29 Nov 2008 15:27:27 -0000 1.6
+++ python-feedparser.spec 27 Dec 2008 18:43:10 -0000 1.7
@@ -9,6 +9,7 @@
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,8 +52,8 @@
%changelog
-* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 4.1-5
-- Rebuild for Python 2.6
+* 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
More information about the fedora-extras-commits
mailing list