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 serhiy.storchaka
Recipients ned.deily, r.david.murray, ronaldoussoren, sentinel, serhiy.storchaka
Date 2017-09-23.21:42:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506202927.19.0.131962243426.issue25359@psf.upfronthosting.co.za>
In-reply-to
Content
There are few issues here.

1. Missed "goto error" after setting an exception in TextIOWrapper constructor. This leads to raising wrong and less informative exception (and maybe worse in Python 3, but this is harder to reproduce).

2. getpreferredencoding() can return None in rare circumferences. But no code using it (except TextIOWrapper) expects this. What is better, fail or fallback to ASCII?
History
Date User Action Args
2017-09-23 21:42:07serhiy.storchakasetrecipients: + serhiy.storchaka, ronaldoussoren, ned.deily, r.david.murray, sentinel
2017-09-23 21:42:07serhiy.storchakasetmessageid: <1506202927.19.0.131962243426.issue25359@psf.upfronthosting.co.za>
2017-09-23 21:42:07serhiy.storchakalinkissue25359 messages
2017-09-23 21:42:07serhiy.storchakacreate