On Wed, May 13, 2020 at 11:13 PM Antoine Pitrou <[email protected]> wrote:
>
> On Wed, 13 May 2020 20:52:38 +1000
> Steven D'Aprano <[email protected]> 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.
>

I'm very curious to know if the ancient MS-DOS functions that take
FCBs would be able to handle NULs, since they work with a fixed length
filename.

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/NN4WHAQDQ55HWOSAVRPU6WT3JP7IQ644/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to