From 035078d847e70f9aa8dbe9794c79cf76d6b65434 Mon Sep 17 00:00:00 2001 From: Sankhesh Jhaveri Date: Thu, 17 Dec 2020 18:07:41 -0500 Subject: cmake-gui: Remove explicit locale setup Qt uses utf-8 encoding by default for versions >= Qt5. --- Source/QtDialog/CMakeSetup.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index 861c6e3..5debdb8 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -7,7 +7,6 @@ #include #include #include -#include #include #include @@ -122,9 +121,6 @@ int main(int argc, char** argv) setlocale(LC_NUMERIC, "C"); - QTextCodec* utf8_codec = QTextCodec::codecForName("UTF-8"); - QTextCodec::setCodecForLocale(utf8_codec); - // tell the cmake library where cmake is QDir cmExecDir(QApplication::applicationDirPath()); #if defined(Q_OS_MAC) -- cgit v0.12