openbsd-ports/textproc/py-xml/patches/patch-xml_parser_xmlproc_xmlutils_py
rpointel a6b1e21ba3 Added a patch from eric4 (IDE) which fixes a problem with foreign characters.
Added MODPY_WANTLIB and bump revision for -python.
ok jasper@.
2011-06-16 08:11:12 +00:00

13 lines
589 B
Plaintext

$OpenBSD: patch-xml_parser_xmlproc_xmlutils_py,v 1.1 2011/06/16 08:11:12 rpointel Exp $
from and needed for editors/eric4
--- xml/parsers/xmlproc/xmlutils.py.orig 2002-09-13 15:37:17.000000000 +0000
+++ xml/parsers/xmlproc/xmlutils.py
@@ -720,6 +720,7 @@ class XMLCommonParser(EntityParser):
# 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