Message386550
Thank Eryk for answering my question.
So I get it now. I use this in Linux.
If my understanding is right, the open() will invoke locale.getpreferredencoding() by setting the do_setlocale=False -- i.e. locale.getpreferredencoding(False) -- to avoid invoking setlocale(LC_CTYPE, "").
Previously I had thought it's locale.getpreferredencoding(True) that invoked. |
|
Date |
User |
Action |
Args |
2021-02-06 07:53:32 | smallbigcake | set | recipients:
+ smallbigcake, docs@python, eryksun |
2021-02-06 07:53:32 | smallbigcake | set | messageid: <1612598012.65.0.82764402281.issue43140@roundup.psfhosted.org> |
2021-02-06 07:53:32 | smallbigcake | link | issue43140 messages |
2021-02-06 07:53:32 | smallbigcake | create | |
|