summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index dc3fb4004..f2b655e14 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -89,6 +89,9 @@ void init_ui(void)
// 106 is "UTF-8", this is faster than lookup by name
// [http://www.iana.org/assignments/character-sets/character-sets.xml]
QTextCodec::setCodecForCStrings(QTextCodec::codecForMib(106));
+ // and for reasons I can't understand, I need to do the same again for tr
+ // even though that clearly uses C strings as well...
+ QTextCodec::setCodecForTr(QTextCodec::codecForMib(106));
#ifdef Q_OS_WIN
QFile::setDecodingFunction(decodeUtf8);
QFile::setEncodingFunction(encodeUtf8);