summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/qt-init.cpp6
1 files changed, 2 insertions, 4 deletions
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");