17 Mar
2021
17 Mar
'21
8:32 a.m.
On Wed, 17 Mar 2021 at 08:13, Michał Górny <mgorny@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