[XML-SIG] PyXML 0.8.1 preparations

Juergen Hermann Juergen Hermann" <jh@web.de
Thu, 12 Sep 2002 18:14:52 +0200


On Wed, 11 Sep 2002 15:51:38 -0400, Fred L. Drake, Jr. wrote:

>Are there any showstoppers I've missed?

Yes, we just found a bug in xmlproc. :)

Without the patch below, xmlproc won't read external parameter entities =

larger than 16K (actually, it will only read the first 16K, resulting 
in non-wellformedness errors and the like because parts of the entity 
are missing).

Also added to the bug tracker...

RCS file: /cvsroot/pyxml/xml/xml/parsers/xmlproc/xmlutils.py,v
retrieving revision 1.33
diff -u -r1.33 xmlutils.py
--- xml/parsers/xmlproc/xmlutils.py     22 Aug 2002 17:03:14 -0000      =

1.33
+++ xml/parsers/xmlproc/xmlutils.py     12 Sep 2002 16:04:16 -0000
@@ -162,7 +162,7 @@
         tmp =3D self.seen_xmldecl
         self.seen_xmldecl =3D 0 # Avoid complaints
 
-        self.read_from(inf)
+        self.read_from(inf, -1)
 
         self.seen_xmldecl =3D tmp
         self.flush() 




Ciao, J=FCrgen

--
J=FCrgen Hermann, Developer
WEB.DE AG, http://webde-ag.de/