3 ms·
> I figured this would basically make it never fail with any weird filenames regardless of the code page. Windows filenames are not guaranteed to be valid UTF-
by account42 2y ago
> I figured this would basically make it never fail with any weird filenames regardless of the code page.
Windows filenames are not guaranteed to be valid UTF-16 so A functions with UTF-8 code page can still fail to access some files. If you want 100% compatibility you need to realize that Windows is a WTF-16 system and make your own compatibility wrappers for the W functions under that assumption.