[New-bugs-announce] [issue2491] io.open() handles errors differently on different platforms

Neal Norwitz report at bugs.python.org
Wed Mar 26 05:24:19 CET 2008


New submission from Neal Norwitz <nnorwitz at gmail.com>:

The attached file has a snapshot of the python.org homepage that was
causing test_urllibnet to fail on some platforms (2 sparc, and ia64 at
least), but not other platforms.  This should be handled consistently.

I don't know if there are really errors in the attached web page or not.
 The problem occurs at byte offset 13259:

>>> data[13250:13270]
'r - Journ\xc3\xa9es Python'

I suppose that's invalid for ASCII, but valid UTF-8.

See r61921.  There is a problem that the API for fdopen doesn't accept
errors, encoding, etc. so it's problematic to handle this condition.

----------
components: Library (Lib)
files: py-org.html
messages: 64540
nosy: nnorwitz
priority: critical
severity: normal
status: open
title: io.open() handles errors differently on different platforms
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file9864/py-org.html

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


More information about the New-bugs-announce mailing list