Репозитории ALT
S: | 4.8.7-alt25 |
5.1: | 4.6.3-alt1.M51.1 |
4.1: | 4.4.3-alt1.M41.1 |
4.0: | 4.3.4-alt5.M40.1 |
3.0: | 4.0.1-alt1 |
+updates: | 4.0.1-alt2 |
+backports: | 4.2.3-alt7.1.M30 |
Группа :: Система/Библиотеки
Пакет: qt4
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: qt-4.6.0-alt-honor-SUSv3-locales.patch
Скачать
Скачать
--- 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");
}