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 mjacob
Recipients Arfrever, andyma, docs@python, ezio.melotti, methane, miss-islington, mjacob, ncoghlan, pitrou, sreepriya
Date 2020-06-18.09:48:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592473709.53.0.415596353771.issue17110@roundup.psfhosted.org>
In-reply-to
Content
If the encoding supports it, since which Python version do Py_DecodeLocale() and os.fsencode() roundtrip?

The background of my question is that Mercurial goes some extra rounds to determine the correct encoding to emulate what Py_EncodeLocale() would do: https://www.mercurial-scm.org/repo/hg/file/5.4.1/mercurial/pycompat.py#l157 . If os.fsencode() could be used, it would simplify the code. Mercurial supports Python 3.5+.
History
Date User Action Args
2020-06-18 09:48:29mjacobsetrecipients: + mjacob, ncoghlan, pitrou, ezio.melotti, Arfrever, methane, docs@python, sreepriya, andyma, miss-islington
2020-06-18 09:48:29mjacobsetmessageid: <1592473709.53.0.415596353771.issue17110@roundup.psfhosted.org>
2020-06-18 09:48:29mjacoblinkissue17110 messages
2020-06-18 09:48:29mjacobcreate