Message282977
If we just restrict this to the file system encoding (and not the whole LANG setting), how about:
* default the file system encoding to 'utf-8' and use the surrogate escape handler as default error handler
* add a PYTHONFSENCODING env var to set the file system encoding to something else (*)
(*) I believe we discussed this at some point already, but don't remember the outcome.
Regarding the questions of defaulting to LANG=C.UTF-8: I think this needs some more thought, since it would also affect many C locale aware functions. To make this work, Python would have to call setlocale() early on in the startup phase to adjust the C lib accordingly. |
|
Date |
User |
Action |
Args |
2016-12-12 10:17:21 | lemburg | set | recipients:
+ lemburg, ncoghlan, vstinner, ezio.melotti, r.david.murray, methane, abarry, Jan Niklas Hasse |
2016-12-12 10:17:21 | lemburg | set | messageid: <1481537841.02.0.0649446920941.issue28180@psf.upfronthosting.co.za> |
2016-12-12 10:17:21 | lemburg | link | issue28180 messages |
2016-12-12 10:17:20 | lemburg | create | |
|