Message261811
"""
Today we're doing something like this:
tmpdir = tempfile.mkdtemp('', 'hgtests.', d and d.decode('utf-8')).encode('utf-8')
"""
Don't do that. UTF-8 is not the right encoding.
Use os.fsencode() and os.fsdecode(). Internally, Python uses sys.getfilesystemencoding() with 'surrogateescape' error handler (but 'strict' error handler on Windows).
If you use UTF-8, you can get indirectly mojibake. |
|
Date |
User |
Action |
Args |
2016-03-15 11:46:23 | vstinner | set | recipients:
+ vstinner, georg.brandl, gregory.p.smith, ncoghlan, pitrou, durin42, r.david.murray, python-dev, martin.panter, Matt.Mackall, serhiy.storchaka |
2016-03-15 11:46:23 | vstinner | set | messageid: <1458042383.77.0.419222988564.issue24230@psf.upfronthosting.co.za> |
2016-03-15 11:46:23 | vstinner | link | issue24230 messages |
2016-03-15 11:46:23 | vstinner | create | |
|