[issue3590] sax.parser considers XML as text rather than bytes

2008-09-03 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This is a duplicate of #2501. -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3590 ___

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-21 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: critical - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3590 ___ ___

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: From the discussion on the python-3000, it looks like it would be nice if sax.parser handled both bytes and unicode streams. Edward, does your simple fix make sax.parser work entirely well with byte streams?

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Mon, Aug 18, 2008 at 1:51 PM, Antoine Pitrou [EMAIL PROTECTED]wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: From the discussion on the python-3000, it looks like it would be nice if sax.parser handled both bytes and unicode

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Mon, Aug 18, 2008 at 11:00 AM, Antoine Pitrou [EMAIL PROTECTED]wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: Just to be clear, I am at present totally confused about io streams :-) Python 3.0 distincts more clearly

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: The same calls to sax read the file correctly on Python 2.5. What are those calls exactly? Why is cp1252 used as an encoding? Is it what is specified in the XML file? Or do you somehow feed stdin to the SAX parser? (if the latter, you aren't

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I guess that the file is simply opened in text mode (r). This uses the preferred encoding, which is cp1252 on (western) Windows machines. -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Mon, Aug 18, 2008 at 4:15 PM, Antoine Pitrou [EMAIL PROTECTED]wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: The same calls to sax read the file correctly on Python 2.5. What are those calls exactly? parser =

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11145/unnamed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3590 ___ ___

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11147/unnamed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3590 ___ ___

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11148/unnamed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3590 ___ ___

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11151/unnamed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3590 ___ ___

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Ok, then xml.sax looks rather broken. (by the way, can you avoid sending HTML emails? each time you send one, the bug tracker attaches a file names unnamed. I've removed all 4 of them now.) ___ Python