diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/pyxml/foreigncharsfix.patch |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/pyxml/foreigncharsfix.patch')
-rw-r--r-- | extra/pyxml/foreigncharsfix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/pyxml/foreigncharsfix.patch b/extra/pyxml/foreigncharsfix.patch new file mode 100644 index 000000000..024d4472d --- /dev/null +++ b/extra/pyxml/foreigncharsfix.patch @@ -0,0 +1,11 @@ +diff -aur PyXML-0.8.4.orig//xml/parsers/xmlproc/xmlutils.py PyXML-0.8.4/xml/parsers/xmlproc/xmlutils.py +--- PyXML-0.8.4.orig//xml/parsers/xmlproc/xmlutils.py 2010-11-06 17:27:53.936666669 +0800 ++++ PyXML-0.8.4/xml/parsers/xmlproc/xmlutils.py 2010-11-06 17:30:39.230000003 +0800 +@@ -720,6 +720,7 @@ + # to the recoding. + try: + self.data = self.charset_converter(self.data) ++ self.datasize = len(self.data) + except UnicodeError, e: + self._handle_decoding_error(self.data, e) + self.input_encoding = enc1 |