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 steven.daprano
Recipients eric.smith, eryksun, mrabarnett, pacujo, r.david.murray, serhiy.storchaka, steven.daprano
Date 2018-06-14.13:18:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528982337.63.0.947875510639.issue33721@psf.upfronthosting.co.za>
In-reply-to
Content
Eric wrote:
> I don't know of any OS that supports NULs in filenames

HFS, HFS Plus, and Apple File System all support NULs in filenames.

HFS Plus volumes include a special special directory called the metadata directory, in the volume's root directory, called "\0\0\0\0HFS+ Private Data".

https://developer.apple.com/library/archive/technotes/tn/tn1150.html#HFSPlusNames

There are, I believe, Carbon APIs for checking for file names which do not rely on NUL-terminated strings (they use an array of Unicode characters with an explicit length), but I don't know enough about OS X APIs to know if they are current generation.
History
Date User Action Args
2018-06-14 13:18:57steven.dapranosetrecipients: + steven.daprano, eric.smith, mrabarnett, r.david.murray, serhiy.storchaka, eryksun, pacujo
2018-06-14 13:18:57steven.dapranosetmessageid: <1528982337.63.0.947875510639.issue33721@psf.upfronthosting.co.za>
2018-06-14 13:18:57steven.dapranolinkissue33721 messages
2018-06-14 13:18:57steven.dapranocreate