--- qt-x11-opensource-src-4.1.3/src/corelib/tools/qlocale.cpp~ 2006-05-14 14:46:59 +0400 +++ qt-x11-opensource-src-4.1.3/src/corelib/tools/qlocale.cpp 2006-05-22 15:13:46 +0400 @@ -1063,6 +1063,8 @@ static QByteArray envVarLocale() #ifdef Q_OS_UNIX lang = qgetenv("LC_ALL"); if (lang.isNull()) + lang = qgetenv("LC_MESSAGES"); + if (lang.isNull()) lang = qgetenv("LC_NUMERIC"); if (lang.isNull()) #endif --- qt-x11-opensource-src-4.6.0/src/corelib/codecs/qtextcodec.cpp~ 2009-12-07 17:01:02 +0300 +++ qt-x11-opensource-src-4.6.0/src/corelib/codecs/qtextcodec.cpp 2009-12-07 17:40:36 +0300 @@ -572,10 +572,10 @@ static void setupLocaleMapper() // Get the first nonempty value from $LC_ALL, $LC_CTYPE, and $LANG // environment variables. QByteArray lang = qgetenv("LC_ALL"); - if (lang.isEmpty() || lang == "C") { + if (lang.isEmpty()) { lang = qgetenv("LC_CTYPE"); } - if (lang.isEmpty() || lang == "C") { + if (lang.isEmpty()) { lang = qgetenv("LANG"); }