summaryrefslogtreecommitdiffstats
path: root/extra/pyfeedparser/feedparser_utf8_decoding.patch
diff options
context:
space:
mode:
authorsibel <sibel@free.fr>2010-03-05 17:27:36 +0100
committersibel <sibel@free.fr>2010-03-05 17:27:36 +0100
commit612e3091d0aaf3597abad0128d533f9f9fdf2f7a (patch)
treeca9f67182fa4668a11880bea00509fa826938102 /extra/pyfeedparser/feedparser_utf8_decoding.patch
parentb39a5785da8f6058dedd1599abca9552ef2a1f44 (diff)
parent68e029f4c4081f1918c1750e8ed84eb716cc4581 (diff)
downloadnutyx-extra-612e3091d0aaf3597abad0128d533f9f9fdf2f7a.tar.gz
nutyx-extra-612e3091d0aaf3597abad0128d533f9f9fdf2f7a.tar.bz2
nutyx-extra-612e3091d0aaf3597abad0128d533f9f9fdf2f7a.tar.xz
nutyx-extra-612e3091d0aaf3597abad0128d533f9f9fdf2f7a.zip
Merge remote branch 'nutyx-2009/master'
Diffstat (limited to 'extra/pyfeedparser/feedparser_utf8_decoding.patch')
-rw-r--r--extra/pyfeedparser/feedparser_utf8_decoding.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/pyfeedparser/feedparser_utf8_decoding.patch b/extra/pyfeedparser/feedparser_utf8_decoding.patch
new file mode 100644
index 000000000..c1779c7e9
--- /dev/null
+++ b/extra/pyfeedparser/feedparser_utf8_decoding.patch
@@ -0,0 +1,12 @@
+--- /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:
+