diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2013-03-31 13:35:31 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-07 09:21:56 (GMT) |
commit | e5205aa2470018fe6ab8b1b01a30355f7aca1f62 (patch) | |
tree | 4dd06212de10dd3d99f607651d94295ceb987a14 /src | |
parent | e9b79c38d8101de3cb0ad6b24bb6553e9de3c567 (diff) | |
download | Qt-e5205aa2470018fe6ab8b1b01a30355f7aca1f62.zip Qt-e5205aa2470018fe6ab8b1b01a30355f7aca1f62.tar.gz Qt-e5205aa2470018fe6ab8b1b01a30355f7aca1f62.tar.bz2 |
Use LC_MESSAGES instead of LC_NUMERIC in QSystemLocale::fallbackLocale()
Backported from QtBase 7dfee3ffc5129307.
Change-Id: I5e7d0116ed95ede87c97d8ac2b9eff3b922818f7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qlocale_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale_unix.cpp b/src/corelib/tools/qlocale_unix.cpp index 3fa903d..f2649fc 100644 --- a/src/corelib/tools/qlocale_unix.cpp +++ b/src/corelib/tools/qlocale_unix.cpp @@ -121,7 +121,7 @@ QLocale QSystemLocale::fallbackLocale() const QByteArray lang = getSystemLocale(); if (lang.isEmpty()) - lang = qgetenv("LC_NUMERIC"); + lang = qgetenv("LC_MESSAGES"); if (lang.isEmpty()) lang = qgetenv("LANG"); return QLocale(QLatin1String(lang)); |