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>
This commit is contained in:
Berthold Stoeger 2018-03-13 18:50:01 +01:00 committed by Lubomir I. Ivanov
parent f799c9ca3f
commit 6f2169488a

View file

@ -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");