Message12758

Author jeff.allen
Recipients jeff.allen, pekka.klarck
Date 2019-11-05.20:51:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572987111.95.0.711068901653.issue2820@roundup.psfhosted.org>
In-reply-to
Content
Java insulates us from the encoding used for file names. As long as we see the file system exclusively through Java's operations, we can choose a conventional FS encoding. We choose UTF-8.

It may be that jnr.posix punctures this bubble. It would be the case I suppose if C (or CPython) made a directory listing in a file, that took a bytes approach to names, then we read that into Jython. In that case, you would need to know the FS encoding to transcode it to UTF-8. I think this will be a problem for very few people.

I agree there is a case for treating a badly-encoded sys.path entry (case 4 of your investigations) as no such directory, rather than surfacing the decoding error. I'm tentatively identifying it with 2.7.2.
History
Date User Action Args
2019-11-05 20:51:51jeff.allensetmessageid: <1572987111.95.0.711068901653.issue2820@roundup.psfhosted.org>
2019-11-05 20:51:51jeff.allensetrecipients: + jeff.allen, pekka.klarck
2019-11-05 20:51:51jeff.allenlinkissue2820 messages
2019-11-05 20:51:51jeff.allencreate