On Mon, May 11, 2020 at 08:59:42PM +0100, Barry Scott wrote: > The \0 can never be part of a valid file in Unix, macOS or Windows.
There are a few file systems which accept NULs in file names, such as HFS and HFS+ and (I think) Joliet. HFS+ 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 I don't know how complete HFS+ support is on Linux or Windows, but in principle any OS that supports HFS+ or (maybe) Joliet could have files with NULs. Remember that NULs may be legal next time you are stress testing your file IO code *wink* -- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BQMB47TWG6Y3NPXPGZMBGZS4UQZQ5QJJ/ Code of Conduct: http://python.org/psf/codeofconduct/