This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author smallbigcake
Recipients docs@python, eryksun, smallbigcake
Date 2021-02-06.07:53:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612598012.65.0.82764402281.issue43140@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-02-06 07:53:32smallbigcakesetrecipients: + smallbigcake, docs@python, eryksun
2021-02-06 07:53:32smallbigcakesetmessageid: <1612598012.65.0.82764402281.issue43140@roundup.psfhosted.org>
2021-02-06 07:53:32smallbigcakelinkissue43140 messages
2021-02-06 07:53:32smallbigcakecreate