[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already fixed in issue1470548. -- nosy: +serhiy.storchaka resolution: -> out of date stage: test needed -> committed/rejected status: open -> closed ___ Python tracker _

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-25 Thread Gunnar Aastrand Grimnes
Gunnar Aastrand Grimnes added the comment: I came across the bug when trying to write XML documents to StringIO objects. This does not work, since the output contains a mix of unicode and str objects, and StringIO gets confused. A better alternative is to use io.BytesIO, since all output sho

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Do you have a test or a small script which shows the incorrect output? -- nosy: +amaury.forgeotdarc stage: -> test needed ___ Python tracker ___

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-23 Thread Gunnar Aastrand Grimnes
New submission from Gunnar Aastrand Grimnes : The startElementNS method in the XMLGenerator ignores the encoding set. it does: self._out.write(' xmlns:%s="%s"' % (prefix, uri)) whereas it should have done: self._write(' xmlns:%s="%s"' % (prefix, uri)) Issue 938076 was similar to this, but