aboutsummaryrefslogtreecommitdiff
path: root/lumina-open/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-open/main.cpp')
-rw-r--r--lumina-open/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp
index 8334b882..5000c2ac 100644
--- a/lumina-open/main.cpp
+++ b/lumina-open/main.cpp
@@ -22,6 +22,7 @@
#include <QPixmap>
#include <QColor>
#include <QFont>
+#include <QTextCodec>
#include "LFileDialog.h"
@@ -58,6 +59,9 @@ void setupApplication(int argc, char **argv){
translator.load( QString("lumina-open_") + langCode, PREFIX + "/share/Lumina-DE/i18n/" );
App->installTranslator( &translator );
qDebug() << "Locale:" << langCode;
+ //Load current encoding for this locale
+ QTextCodec::setCodecForTr( QTextCodec::codecForLocale() ); //make sure to use the same codec
+ qDebug() << "Locale Encoding:" << QTextCodec::codecForLocale()->name();
}
void showOSD(int argc, char **argv, QString message){
bgstack15