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 ericzolf
Recipients docs@python, ericzolf
Date 2021-03-04.06:31:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614839485.4.0.948731177165.issue43395@roundup.psfhosted.org>
In-reply-to
Content
The os.path documentation at https://docs.python.org/3/library/os.path.html states that:

> Vice versa, using bytes objects cannot represent all file names on Windows (in the standard mbcs encoding), hence Windows applications should use string objects to access all files.

This doesn't sound right and is at least misleading because anything can be represented as bytes, as everything (in a computer) is bytes at the end of the day, unless mbcs is really using something like half-bytes, which I couldn't find any sign of (skimming through the documentation, Microsoft seems to interpret it as DBCS, one or two bytes).

I could imagine that the meaning is that some bytes combinations can't be used as path under Windows, but I just don't know, and that wouldn't be a valid reason to not use bytes under Windows (IMHO).
History
Date User Action Args
2021-03-04 06:31:25ericzolfsetrecipients: + ericzolf, docs@python
2021-03-04 06:31:25ericzolfsetmessageid: <1614839485.4.0.948731177165.issue43395@roundup.psfhosted.org>
2021-03-04 06:31:25ericzolflinkissue43395 messages
2021-03-04 06:31:20ericzolfcreate