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 vstinner
Recipients Arfrever, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka, vstinner
Date 2015-09-30.10:07:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Before importing the io module sys.stderr is stdprinter. It always encodes written string to UTF-8. Proposed patch makes it to use the backslashreplace error handler.

I like this solution. stdprinter is supposed to be replaced quickly.

But we may need something else to escape non-encodable characters in the filename when sys.stdout is a TextIOWrapper using the strict error handler.
Date User Action Args
2015-09-30 10:07:31vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, Arfrever, eric.snow, serhiy.storchaka
2015-09-30 10:07:31vstinnersetmessageid: <>
2015-09-30 10:07:31vstinnerlinkissue25182 messages
2015-09-30 10:07:31vstinnercreate