2
0
forked from Ivasoft/DSView

1. 修复QT5.15.6中QTextCodec::codecForName("System")返回为0的问题。

This commit is contained in:
victor
2022-10-05 13:05:53 +08:00
parent 190c45da3e
commit 624cda3c70

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;
}
}
}
}