From e5205aa2470018fe6ab8b1b01a30355f7aca1f62 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sun, 31 Mar 2013 17:35:31 +0400 Subject: Use LC_MESSAGES instead of LC_NUMERIC in QSystemLocale::fallbackLocale() Backported from QtBase 7dfee3ffc5129307. Change-Id: I5e7d0116ed95ede87c97d8ac2b9eff3b922818f7 Reviewed-by: Lars Knoll --- src/corelib/tools/qlocale_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v0.12