Closed
Description
File related classes like WindowsFile use ANSI functions like fopen_s. This may lead to problems if the app ever runs on computers that use Asian file names (I had to learn this the hard way).
Please consider using "wide" functions like _wfopen_s for this.
Structs like ShaderCreationAttribs (contains a member const Char* FilePath) may stay as they are, as long as the file name is UTF-8 encoded. You can later convert that to wchar_t by using
MultiByteToWideChar(CP_UTF8, 0, pcUTF8, -1, wUTF16, _countof(wUTF16);
Best Regards,
Jörn
Metadata
Metadata
Assignees
Labels
No labels