[XML-SIG] [ pyxml-Patches-1287451 ] xmlproc utf-8 parse fix

SourceForge.net noreply at sourceforge.net
Sun Sep 11 08:01:29 CEST 2005


Patches item #1287451, was opened at 2005-09-11 02:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=306473&aid=1287451&group_id=6473

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: xmlproc
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: jlabath (jlabath)
Assigned to: Lars Marius Garshol (larsga)
Summary: xmlproc utf-8 parse fix

Initial Comment:
xmlproc will fail with error message:
"Character data not allowed outside root element" when
parsing utf-8.

This will only happen if the utf-8 document actually
contains any multibyte characters.

 After some research i realized that
xmlproc/xmlutils.py never changes the length of
self.datasize after reencoding the input data. 

I beleive this patch should solve this problem and
should not break anything else, but I have not done
extensive testing. 

Hope this helps.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=306473&aid=1287451&group_id=6473


More information about the XML-SIG mailing list