You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decoding to what (according to the documentation)
should be a byte string (using StreamReader) does one
of 2 incorrect things, depending on the default encoding:
If the byte string has values not in the current
default encoding then StreamReader.read() incorrectly
triggers an exception.
If the byte string can be accomodated by the current
default encoding then StreamReader.read() incorrectly
returns a unicode object.
The documentation says in lib/standard-encodings.html:
"The result of the ``decoding'' direction is listed
as operand type in the table."
"base64_codec ... byte string"
(This bug does not exist in python2.2 or 2.3)
The attached script demonstrates the 2 related bugs.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: