--- a/QTfrontend/main.cpp Wed Apr 17 11:24:06 2013 -0400
+++ b/QTfrontend/main.cpp Thu Apr 18 00:41:27 2013 +0400
@@ -261,11 +261,11 @@
engine->setWriteDir(cfgdir->absolutePath());
engine->mountPacks();
- DataManager::ensureFileExists("physfs://hedgewars.ini");
-
QTranslator Translator;
{
- QSettings settings("physfs://hedgewars.ini", QSettings::IniFormat);
+ QSettings settings(DataManager::instance().settingsFileName(), QSettings::IniFormat);
+ settings.setIniCodec("UTF-8");
+
QString cc = settings.value("misc/locale", QString()).toString();
if (cc.isEmpty())
cc = HWApplication::keyboardInputLocale().name();