Message284887
| Author |
methane |
| Recipients |
Jan Niklas Hasse, abarry, akira, barry, deleted250130, 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 |
<1483766697.5.0.413483067372.issue28180@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>> 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 badfilename.py
badfn = "こんにちは".encode('euc-jp').decode('utf-8', 'surrogateescape')
print("bad filename:", badfn)
$ PYTHONIOENCODING=utf-8:backslashreplace python3 badfilename.py
bad filename: \udca4\udcb3\udca4\udcf3\udca4ʕ\udcc1\udca4\udccf
$ PYTHONIOENCODING=utf-8:surrogateescape python3 badfilename.py
bad filename: �����ʕ��� |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年01月07日 05:24:57 | methane | set | recipients:
+ methane, lemburg, barry, ncoghlan, vstinner, ezio.melotti, r.david.murray, akira, deleted250130, yan12125, abarry, Jan Niklas Hasse |
| 2017年01月07日 05:24:57 | methane | set | messageid: <1483766697.5.0.413483067372.issue28180@psf.upfronthosting.co.za> |
| 2017年01月07日 05:24:57 | methane | link | issue28180 messages |
| 2017年01月07日 05:24:57 | methane | create |
|