Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.1
-
None
-
* Qt 5.11.1
* Android emulator, platform level 28
* Android device, platform level 27
Description
When querying for the default locale in a Android service using a default constructed locale (or QLocale::system(), the C-locale is always returned instead of the actual locale. This only happens for services, not for activities.
Sample code:
qWarning() << QLocale() << QLocale::system();
Output when run from activity:
09-03 18:03:57.202 ...: QLocale(German, Latin, Germany) QLocale(German, Latin, Germany)
Output when run from service:
09-03 18:03:57.105 ...: QLocale(C, Default, Default) QLocale(C, Default, Default)