On Wed, 13 May 2020 20:52:38 +1000 Steven D'Aprano <st...@pearwood.info> wrote: > > 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*
NULs may be theoretically legal on your filesystem of choice, but standard POSIX and Windows APIs don't let you pass filenames with NULs in them correctly. So the point is moot. If you know of a system function which accepts filenames with embedded NULs (which probably means it also takes the filename length as a separate parameter), I'd be curious to know about it. Regards Antoine. _______________________________________________ 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/XVROQZXKFW7WMMBACCHPHHOPKLJV5BKW/ Code of Conduct: http://python.org/psf/codeofconduct/