Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
5.15.2
-
None
-
-
qtbase/d8158c6c93fc2a83f5acacc7baaf1a840951cf1e
Description
Having an iPhone set to:
Language: German
Region: United States
QLocale().name() gives "de_DE", QLocale().country() gives "DE"
However, native objective-c code does as expected:
NSString *countryCode = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]
qDebug() << "CountryCode:" << QString::fromNSString(countryCode);
will print "US"
Attachments
Issue Links
- duplicates
-
QTBUG-90971 macOS system locale isn't consistent with itself
- Closed