Why Nostr? What is Njump?
2024-04-14 19:44:35

Lukas on Nostr: So you're developing a cross-platform library that deals with filenames as a const ...

So you're developing a cross-platform library that deals with filenames as a const char * (or the equivalent thereof)? On Windows, please treat the the filenames as UTF-8 and internally convert them to UTF-16 to call the Unicode Windows APIs or only have a wchar_t* function available.

DO NOT pass the filename as-is to the ANSI Windows APIs. With char * being treated as UTF-8 encoded text, this appears to work until an umlaut or another non-ASCII character appears in a filename.

Thank you.
Author Public Key
npub1lw5fddlavgj8ssg3w4a8v2jy386lxk59myujulkwsadcv5vpdy3swdj4uz