Skip to content

Commit

Permalink
Fix messy Chinese paths on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Baiyuetribe committed Sep 13, 2024
1 parent ddd9a61 commit 2bfed68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/FileLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace MNN {
static FILE* _OpenFile(const char* file, bool read) {
#if defined(_MSC_VER)
wchar_t wFilename[1024];
if (0 == MultiByteToWideChar(CP_ACP, 0, file, -1, wFilename, sizeof(wFilename))) {
if (0 == MultiByteToWideChar(CP_UTF8, 0, file, -1, wFilename, sizeof(wFilename))) {
return nullptr;
}
#if _MSC_VER >= 1400
Expand Down

0 comments on commit 2bfed68

Please sign in to comment.