diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-13 18:50:01 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-03-14 13:55:36 +0200 |
commit | 6f2169488a1790268054554fd275e49d614947c6 (patch) | |
tree | 3416296535aa84f5c88fc35b40d3f0e6744d7f99 /core/qt-init.cpp | |
parent | f799c9ca3fadf721bedca678f7e17283168814b2 (diff) | |
download | subsurface-6f2169488a1790268054554fd275e49d614947c6.tar.gz |
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 <neolit123@gmail.com>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qt-init.cpp')
-rw-r--r-- | core/qt-init.cpp | 6 |
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"); |