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

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
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
_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.