summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-06-04 12:35:51 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-06-11 23:30:08 +0200
commitdf01accf97365a52b36e2c3e81a26608de9203a1 (patch)
treece10d4af0f81ba4d669c3ffb66e6c20c7a73cec8 /src/corelib
parentb24e689cb561d81745ff47a5ce4595b809923914 (diff)
Record useful URL in qlocale_unix.cpp
The Open Group's documentation of the meanings of the locale-determining environment variables. Change-Id: I5e3ae7de033b569b1c691b85ed65e441832359c4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/text/qlocale_unix.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/text/qlocale_unix.cpp b/src/corelib/text/qlocale_unix.cpp
index 29053a7074..8f5624f79e 100644
--- a/src/corelib/text/qlocale_unix.cpp
+++ b/src/corelib/text/qlocale_unix.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2020 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
@@ -77,6 +77,8 @@ void QSystemLocaleData::readEnvironment()
{
QWriteLocker locker(&lock);
+ // See https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_02
+ // for the semantics of each of these:
QByteArray all = qgetenv("LC_ALL");
QByteArray numeric = all.isEmpty() ? qgetenv("LC_NUMERIC") : all;
QByteArray time = all.isEmpty() ? qgetenv("LC_TIME") : all;