This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients r.david.murray, rsc1975
Date 2015-08-31.18:59:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441047584.57.0.881644213401.issue24966@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, I think I was thinking of issue 19846, which was fixed by using surrogateescape on the standard streams instead of "guessing" utf-8.

I'm not utterly opposed to turning the ValueError into a default return value, but as you can see, the fact that the ValueError was returned pointed toward the deeper problem (needing to have a way to change the encoding of an already-existing TextIO stream).
History
Date User Action Args
2015-08-31 18:59:44r.david.murraysetrecipients: + r.david.murray, rsc1975
2015-08-31 18:59:44r.david.murraysetmessageid: <1441047584.57.0.881644213401.issue24966@psf.upfronthosting.co.za>
2015-08-31 18:59:44r.david.murraylinkissue24966 messages
2015-08-31 18:59:44r.david.murraycreate