Added a patch from eric4 (IDE) which fixes a problem with foreign characters.

Added MODPY_WANTLIB and bump revision for -python.
ok jasper@.
This commit is contained in:
rpointel 2011-06-16 08:11:12 +00:00
parent 3b3edd9bee
commit a6b1e21ba3
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.41 2011/06/08 18:09:58 jasper Exp $
# $OpenBSD: Makefile,v 1.42 2011/06/16 08:11:12 rpointel Exp $
SHARED_ONLY= Yes
@ -9,7 +9,7 @@ MODPY_EGG_VERSION=0.8.4
VERSION= ${MODPY_EGG_VERSION}
DISTNAME= PyXML-${VERSION}
PKGNAME= py-xml-${VERSION}
REVISION= 10
REVISION= 11
CATEGORIES= textproc devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyxml/}
@ -36,6 +36,8 @@ FLAVOR?=
WANTLIB += expat
.endif
WANTLIB += ${MODPY_WANTLIB}
REGRESS_DEPENDS= python-tests-${MODPY_VSPEC}:lang/python/${MODPY_VERSION},-tests
DOC_DIR= ${PREFIX}/share/doc/py-xml/

View File

@ -0,0 +1,12 @@
$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