Hello list, I run into a problem when trying to sort a list of strings locale aware. When using QString::localeAwareCompare(), it seems only to use the system locale, not the locale I set as default (QLocale::setDefault()) on application startup. As I read, this is the normal behavior when using the localeAwareCompare() function of QString. Since Qt 5.2 there is QCollator and QString uses it for comparing two string if QT_USE_ICU is defined on building Qt. [1]
The "funny" thing for me is, that I compare two string roles in a row. This first strings are compared as expected, the second strings not. So, my question is now, as in the subject, if Qt on Sailfish is compiled to use ICU (so using QCollator) or if it uses ucstrcmp. At least libicu52 seems to be installed. Best greetings Matthias Fehring [1] http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/tools/qstring.cpp?h=old/5.2#n5173 -- Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre. (Friedrich Schiller - Die Räuber) www.buschmann23.de GPG-Key: 3A70A936614C3258 GPG Fingerprint: D786 DDF8 4CA9 00BC CDE0 9A5F CCC5 125D 6E87 D4FC
signature.asc
Description: OpenPGP digital signature
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org