summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Sondergaard <ts@medical-insight.com>2012-03-21 20:02:30 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-04-04 18:31:19 (GMT)
commit9e451113e8265790907aceaac814fbe324fb1e33 (patch)
tree38cb0d7b54a80a99ba932e43cd1976ccaa0ae892
parentcb4ec42709d4571b1186a1c0d0d9c1a37c212e91 (diff)
downloadQt-9e451113e8265790907aceaac814fbe324fb1e33.zip
Qt-9e451113e8265790907aceaac814fbe324fb1e33.tar.gz
Qt-9e451113e8265790907aceaac814fbe324fb1e33.tar.bz2
Use value of LANG if LC_TIME is empty.
Task-number: QTBUG-24912 Change-Id: I68d91c02f5d82b7fc4cae0d2dedafb862a3b323b Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com> Reviewed-by: John Layt <jlayt@kde.org>
-rw-r--r--src/corelib/tools/qlocale_unix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qlocale_unix.cpp b/src/corelib/tools/qlocale_unix.cpp
index dd99792..8e8f290 100644
--- a/src/corelib/tools/qlocale_unix.cpp
+++ b/src/corelib/tools/qlocale_unix.cpp
@@ -94,6 +94,8 @@ struct QSystemLocaleData
lang = QByteArray("C");
if (numeric.isEmpty())
numeric = lang;
+ if (time.isEmpty())
+ time = lang;
if (monetary.isEmpty())
monetary = lang;
if (lc_messages_var.isEmpty())