11 May
2020
11 May
'20
12:59 p.m.
On 11 May 2020, at 18:09, Andrew Barnert via Python-ideas
wrote: More generally, what’s the use case for %-encoding filenames like this? Are people expecting it to interact transparently with URLs, so if I save a file “spam\0eggs” in a Python script and then try to browse to file:///spam\0eggs file:///spam/0eggs” in a browser, the browser will convert the \0 character to %00 the same way my Python script did and therefore find the file?
No. The \0 can never be part of a valid file in Unix, macOS or Windows. Barry