In my understanding, the use of Windows filesystem functions accepting bytes (those with an A
suffix) is discouraged (I didn’t find an official deprecation notice, but for example Python deprecated their use).
On Unix-derived systems, file names are stored as bytes. The encoding isn’t defined, but many systems are configured to interpret file names as UTF-8.
Since recently, it seems to be possible on Windows to set the code page to UTF-8. Is it possible to estimate how many Windows users have that code page set? Does it make sense to use the bytes-accepting filesystem API on Windows similar to how the POSIX API is used on Unix-derived systems (e.g. when porting some application from Linux to Windows)?