From 6f2169488a1790268054554fd275e49d614947c6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 13 Mar 2018 18:50:01 +0100 Subject: Cleanup: Set text encoding to UTF-8 for all platforms. This was only done explicitly for Windows. Other platforms were implicitly supposed to be UTF-8. Suggested-by: Lubomir I. Ivanov Signed-off-by: Berthold Stoeger --- core/qt-init.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/qt-init.cpp b/core/qt-init.cpp index f35c6a670..42d89f18b 100644 --- a/core/qt-init.cpp +++ b/core/qt-init.cpp @@ -16,11 +16,9 @@ void init_qt_late() // note: on Linux, "system" == "environment variables" QNetworkProxyFactory::setUseSystemConfiguration(true); - // for Win32 and Qt5 we try to set the locale codec to UTF-8. - // this makes QFile::encodeName() work. -#ifdef Q_OS_WIN + // Set the locale codec to UTF-8. + // This makes QFile::encodeName() work on Windows and qPrintable() is equivalent to qUtf8Printable(). QTextCodec::setCodecForLocale(QTextCodec::codecForMib(106)); -#endif QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); -- cgit v1.2.3-70-g09d2