From 4c02f807c1d71dcd1065c35c1b497d94c090dca6 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 8 Jul 2020 11:35:03 +0200 Subject: [PATCH] MSVC: Use proper codec for vswhere output parsing Fixes: QTCREATORBUG-24311 Change-Id: Ifeefd51ddc9f3eb738ee2649328209ed3494f9a5 Reviewed-by: Oliver Wolff --- src/plugins/projectexplorer/msvctoolchain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/msvctoolchain.cpp b/src/plugins/projectexplorer/msvctoolchain.cpp index 2b46aaff67d..c3af541a2c2 100644 --- a/src/plugins/projectexplorer/msvctoolchain.cpp +++ b/src/plugins/projectexplorer/msvctoolchain.cpp @@ -237,6 +237,7 @@ static QVector detectVisualStudioFromVsWhere(const QSt { QVector installations; Utils::SynchronousProcess vsWhereProcess; + vsWhereProcess.setCodec(QTextCodec::codecForName("UTF-8")); const int timeoutS = 5; vsWhereProcess.setTimeoutS(timeoutS); const CommandLine cmd(vswhere,