Fix locale issue on unix systems
authorStephen Röttger <stephen.roettger@zero-entropy.de>
Tue, 24 Apr 2012 03:29:07 +0000 (05:29 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Apr 2012 19:45:00 +0000 (21:45 +0200)
commitb9790a04eeba664ecdf9ace24911094a71b5f0bd
tree0874a58a2bd0262787468b5200759325f9a89607
parentf948bb3c6c6d14f5d5f209f9be720998a81df145
Fix locale issue on unix systems

QSystemLocale::query() was missing the LanguageId QueryType. Therefore
QSystemLocale::fallbackLocale() was always used as default language,
which reads environment variables in the order: LC_ALL -> LC_NUMERIC ->
LANG. The correct behaviour is to read LC_ALL -> LC_MESSAGES -> LANG.
This leads to problems for users that want to use english language, but
non-english localization features (date, number formats etc.)

Change-Id: I4310537dac8622a3dd79231fbad58e22f20ca262
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: John Layt <jlayt@kde.org>
src/corelib/tools/qlocale_unix.cpp