4 ms·
> On Windows NT filename is specified as sequence of 16 bit wchar_ts and is supposed to be valid NFC UTF-16. I would emphasise that the "supposed to be" is a c
by ChrisSD 7y ago
> On Windows NT filename is specified as sequence of 16 bit wchar_ts and is supposed to be valid NFC UTF-16.
I would emphasise that the "supposed to be" is a convention only (similar to the Linux UTF-8 convention). The only filesystem enforced rules are that file/directory names can't include \/:*?"<>| or wchar_t(s) less than 0x20 (aka ascii control characters).
A Win32 path can also have additional rules (such as a file cannot be called "COM") but these aren't always enforced, depending on how the API is called.