Message206068
> Instead, open() determines the default encoding by calling the same function that's used to initialize Py_FileSystemDefaultEncoding: get_locale_encoding() in Python/pythonrun.c. Which on POSIX systems calls the POSIX function nl_langinfo().
open() will use at default the encoding of nl_langinfo() as sys.getfilesystemencoding() does on *nix. This is the part that looks dirty to me. As soon as LANG is set to C open() will rely on 'ascii' due to nl_langinfo() like sys.getfilesystemencoding() does too. |
|
Date |
User |
Action |
Args |
2013-12-13 12:19:49 | Sworddragon | set | recipients:
+ Sworddragon, lemburg, loewis, terry.reedy, ncoghlan, pitrou, vstinner, larry, a.badger, r.david.murray, serhiy.storchaka, bkabrda |
2013-12-13 12:19:49 | Sworddragon | set | messageid: <1386937189.81.0.736900543235.issue19846@psf.upfronthosting.co.za> |
2013-12-13 12:19:49 | Sworddragon | link | issue19846 messages |
2013-12-13 12:19:49 | Sworddragon | create | |
|