Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.4, 6.7.0 Beta1
-
None
-
Ubuntu 22.04
-
-
8
-
904f1d3b1 (dev), f4f35fe84 (dev), 063026cc5 (dev), 41c786781 (6.7), 4f88c3e3a (6.6), 86f1db459 (tqtc/lts-6.5)
-
Foundation Sprint 100
Description
There is a problem with some country codes and the related native names.
when using:
QLocale(QLocale::AnyLanguage, QLocale::codeToTerritory(QString("US"))); QLocale(QLocale::AnyLanguage, QLocale::codeToTerritory(QString("GB")));
the country stored in the QLocale object is correctly set to UnitedStates and UnitedKingdom but when I am trying to get nativeCountryName() it prints me something like that:
for US: "ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ"
for GB: "Rywvaneth Unys"
When I changed the country code from US to USA and GB to GBR, then USA works correctly, but GBR is recognized as QLocale::UnitedStates instead QLocale::UnitedKingdom.
Attachments
For Gerrit Dashboard: QTBUG-121485 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
529231,16 | Update QLocale and calendar data to CLDR v44.1 | dev | qt/qtbase | Status: MERGED | +2 | 0 |
533932,2 | tst_QLocale: add some basic endonym tests | dev | qt/qtbase | Status: MERGED | +2 | 0 |
533934,2 | Add expect-fail test-cases for und_US, und_GB to tst_QLocale::ctor() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
536741,3 | Update QLocale and calendar data to CLDR v44.1 | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
537355,3 | Update QLocale and calendar data to CLDR v44.1 | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
538124,3 | Update QLocale and calendar data to CLDR v44.1 | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |