If you ship your library/application to Windows, please use UTF-16 interfaces

TL;DR: Do as the title says, or your library/application won’t function properly in certain situations.

Here’s a small program that takes a file path as a parameter, and queries its size:

Even though stat is a POSIX function, it happens to be available on Windows as well, so this nice program works on both POSIX platforms and Windows. Or does it?

Continue reading “If you ship your library/application to Windows, please use UTF-16 interfaces”

Advertisements