summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSankhesh Jhaveri <sankhesh.jhaveri@kitware.com>2020-12-17 23:07:41 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-05 16:03:30 (GMT)
commit035078d847e70f9aa8dbe9794c79cf76d6b65434 (patch)
tree7b68e3f6c714cbf3097f10f4e3a6e5331c43b284 /Source
parentf1de6f6682bedc10a9133ed2128f418d58fe1e19 (diff)
downloadCMake-035078d847e70f9aa8dbe9794c79cf76d6b65434.zip
CMake-035078d847e70f9aa8dbe9794c79cf76d6b65434.tar.gz
CMake-035078d847e70f9aa8dbe9794c79cf76d6b65434.tar.bz2
cmake-gui: Remove explicit locale setup
Qt uses utf-8 encoding by default for versions >= Qt5.
Diffstat (limited to 'Source')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx4
1 files changed, 0 insertions, 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 <QDir>
#include <QLocale>
#include <QString>
-#include <QTextCodec>
#include <QTranslator>
#include <QtPlugin>
@@ -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)