2
0
forked from Ivasoft/DSView

Merge pull request #544 from sagasm/master

修复几个win10上的编译问题。
This commit is contained in:
dreamsourcelabTAI
2022-10-27 17:47:17 +08:00
committed by GitHub
2 changed files with 7 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ namespace path{
std::string str;
#ifdef _WIN32
QTextCodec *codec = QTextCodec::codecForName("System");
QTextCodec *codec = QTextCodec::codecForLocale();
QByteArray str_tmp = codec->fromUnicode(path);
str = str_tmp.data();
#else
@@ -57,4 +57,4 @@ namespace path{
return str;
}
}
}
}