On Wed, 17 Mar 2021 at 08:13, Michał Górny <mgo...@gentoo.org> wrote: > > On Wed, 2021-03-17 at 13:55 +0900, Inada Naoki wrote: > > OK. setuptools doesn't specify encoding at all. So locale-specific > > encoding is used. > > We can not fix it in short term. > > How about writing paths as bytestrings in the long term? I think this > should eliminate the necessity of knowing the correct encoding for > the filesystem.
If I have a path in my Python program that is "a£b" (a unicode string) and I want to write it to a .pth file, what encoding should I use to "write it as a bytestring"? I don't understand what you;re trying to suggest here. Paul _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/YBE6D37V73OXZYNEW36JO24ZBD7EKAJQ/ Code of Conduct: http://python.org/psf/codeofconduct/