https://bugs.kde.org/show_bug.cgi?id=211531
Konstantinos Smanis <konstantinos.sma...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #102506|0 |1 is obsolete| | --- Comment #18 from Konstantinos Smanis <konstantinos.sma...@gmail.com> --- Created attachment 102626 --> https://bugs.kde.org/attachment.cgi?id=102626&action=edit Revised patch According to QtBug #17104 [1], LC_COLLATE is ignored by Qt. Something along the lines of m_collator.setLocale(QProcessEnvironment::systemEnvironment().value("LC_COLLATE")); could be used instead, although it's a tad ugly. But then I'm hitting another bug: with LC_COLLATE=C the QCollator is properly set to collate using the C-locale but the comparisons are wrong. E.g. even QCollator(QLocale("C")).compare("A", "a"); returns 1 for me, instead of a negative value. Of course we could fall back to QString::compare in this specific case (C-locale), but this is ugly as well. I am not gonna pursue this any further, I leave my code & research here in case anyone is interested to pick it up. [1] https://bugreports.qt.io/browse/QTBUG-17104 -- You are receiving this mail because: You are watching all bug changes.