mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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:
parent
f799c9ca3f
commit
6f2169488a
1 changed files with 2 additions and 4 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue