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 methane
Recipients Jan Niklas Hasse, Sworddragon, abarry, akira, barry, ezio.melotti, lemburg, methane, ncoghlan, r.david.murray, vstinner, yan12125
Date 2017-01-07.05:24:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>> stderr is used to log errors. Getting a new error when trying to log
>> an error is kind of annoying.
> Hm, what bad surprise/error could appear that would not appear with backslashescape?

$ cat 
badfn = "こんにちは".encode('euc-jp').decode('utf-8', 'surrogateescape')
print("bad filename:", badfn)

$ PYTHONIOENCODING=utf-8:backslashreplace python3 
bad filename: \udca4\udcb3\udca4\udcf3\udca4ˤ\udcc1\udca4\udccf

$ PYTHONIOENCODING=utf-8:surrogateescape python3 
bad filename: �����ˤ���
Date User Action Args
2017-01-07 05:24:57methanesetrecipients: + methane, lemburg, barry, ncoghlan, vstinner, ezio.melotti, r.david.murray, akira, Sworddragon, yan12125, abarry, Jan Niklas Hasse
2017-01-07 05:24:57methanesetmessageid: <>
2017-01-07 05:24:57methanelinkissue28180 messages
2017-01-07 05:24:57methanecreate