forked from Ivasoft/DSView
1. 修复QT5.15.6中QTextCodec::codecForName("System")返回为0的问题。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user