Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.x
-
None
Description
The qcontactsortorder unit test checks different sorting orders of QContact s based on their notes. QString-based details like notes are compared via QString::localeAwareCompare() and the resulting order is thus highly dependent on both platform and current locale and which thus not always match the expectations outlined in src/contacts/qcontactmanagerengine.cpp.
For example, the tests checking the ascending or descending cases-sensitive sort order currently fail when using the C.UTF-8 locale on Debian unstable (see the attached build log).
I'm not sure what a good solution would be, I suppose QMake could set LC_ALL to a widely used locale which matches the current expectations of the unit test like en_US.UTF-8, but that isn't guaranteed to exist in a build environment and locale names are not standardized or platform-independent.