Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.9.3
-
None
-
73e7ffb2f (dev)
Description
Hi,
The following snippet:
QLocale us(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::UnitedStates); qDebug() << us.country();
returns:
QLocale::Country(AnyCountry)
I would have expected that to return:
QLocale::Country(UnitedStates)
I know it isn't because of some lookup in the source.. But this does seem to be a little wrong. When one does provide the language as well then the output is as expected (QLocale::Country(UnitedStates)).
Attachments
For Gerrit Dashboard: QTBUG-64940 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
213402,2 | Don't try (Any,Any,Any) before a partially-specified locale | dev | qt/qtbase | Status: MERGED | +2 | 0 |
452334,3 | Verify land-preservation in locale construction | dev | qt/qtbase | Status: MERGED | +2 | 0 |