MSVC: Use proper codec for vswhere output parsing

Fixes: QTCREATORBUG-24311
Change-Id: Ifeefd51ddc9f3eb738ee2649328209ed3494f9a5
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Christian Kandeler
2020-07-08 11:35:03 +02:00
parent 9410c7a575
commit 4c02f807c1

View File

@@ -237,6 +237,7 @@ static QVector<VisualStudioInstallation> detectVisualStudioFromVsWhere(const QSt
{ {
QVector<VisualStudioInstallation> installations; QVector<VisualStudioInstallation> installations;
Utils::SynchronousProcess vsWhereProcess; Utils::SynchronousProcess vsWhereProcess;
vsWhereProcess.setCodec(QTextCodec::codecForName("UTF-8"));
const int timeoutS = 5; const int timeoutS = 5;
vsWhereProcess.setTimeoutS(timeoutS); vsWhereProcess.setTimeoutS(timeoutS);
const CommandLine cmd(vswhere, const CommandLine cmd(vswhere,