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.