[New-bugs-announce] [issue2175] Expat sax parser silently ignores the InputSource protocol

Yitz Gale report at bugs.python.org
Sun Feb 24 15:03:03 CET 2008


New submission from Yitz Gale:

The expat sax parser in xml.sax.expatreader
does not fully support the InputSource protocol
in xml.sax.xmlreader. It only accepts
byte streams. It ignores the encoding
indicated in the InputStream object and
only uses the encoding read from
the XML or defaults to UTF-8.

Rather than silently doing the wrong thing,
it should raise an error when fed a character stream,
or when given an encoding, via the InputSource
interface.

And most importantly, these limitations should be mentioned
in the documentation.

----------
components: Documentation, Extension Modules, Library (Lib), Unicode, XML
messages: 62901
nosy: ygale
severity: normal
status: open
title: Expat sax parser silently ignores the InputSource protocol
type: behavior
versions: Python 2.5, Python 2.6, Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2175>
__________________________________


More information about the New-bugs-announce mailing list