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>
This commit is contained in:
parent
b24e689cb5
commit
df01accf97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user