summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <icon@fedoraproject.org>2008-12-27 19:00:09 +0000
committerKonstantin Ryabitsev <icon@fedoraproject.org>2008-12-27 19:00:09 +0000
commit525889f06f7f615cdf8aefa9e30b80049650e794 (patch)
treeb54701a7f71bf82f446d54b154089762314088e0
parent77d4d8dc6b026c1e84ae424913cf8573096fc156 (diff)
downloadpython-feedparser-525889f06f7f615cdf8aefa9e30b80049650e794.zip
python-feedparser-525889f06f7f615cdf8aefa9e30b80049650e794.tar.gz
python-feedparser-525889f06f7f615cdf8aefa9e30b80049650e794.tar.xz
- Patch for a utf8 decoding issue (#477024)
-rw-r--r--feedparser_utf8_decoding.patch11
-rw-r--r--python-feedparser.spec10
2 files changed, 19 insertions, 2 deletions
diff --git a/feedparser_utf8_decoding.patch b/feedparser_utf8_decoding.patch
new file mode 100644
index 0000000..44111b9
--- /dev/null
+++ b/feedparser_utf8_decoding.patch
@@ -0,0 +1,11 @@
+--- /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:
diff --git a/python-feedparser.spec b/python-feedparser.spec
index 2c83db9..190cd15 100644
--- a/python-feedparser.spec
+++ b/python-feedparser.spec
@@ -2,13 +2,14 @@
Name: python-feedparser
Version: 4.1
-Release: 3%{?dist}
+Release: 4%{?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 @@ modules, including Dublin Core and Apple's iTunes extensions.
%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,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sat Dec 27 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-4
+- fix license tag
+- Patch for a utf8 decoding issue (#477024)
+
* Thu Jun 28 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-3
- Ghostbusting (#205413).
- Remove manual python-abi Requires.