Bug 149554 - Incorrect sorting among tags for non-english characters
Summary: Incorrect sorting among tags for non-english characters
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-i18n (show other bugs)
Version: 0.9.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-05 07:39 UTC by malte
Modified: 2017-08-04 17:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0
Sentry Crash Report:
caulier.gilles: Junior_Jobs+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malte 2007-09-05 07:39:22 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
OS:                Linux

If you enter a tag like 'åäö', it will appear before tags beginning with an 'a' in the tag list, but it should appear last (åäö are last in the swedish alphabet). I'm guessing the same would happen for other non-english characters like ü.
Comment 1 Paweł Marciniak 2007-09-06 14:17:35 UTC
Are you sure your locale is set to Swedish?
Comment 2 malte 2007-09-06 17:25:47 UTC
I switch between english and swedish locales often, and to produce the åäö characters you must be in the swe (or other language that uses them). So I've been in both locales, the tags are not sorted correctly in neither. But regardless it should not matter which locale you are currently in for the sorting to work, should it?
Comment 3 Marcel Wiesweg 2007-09-06 18:58:45 UTC
Sorting depends on locale, it is special knowledge that å is the last letter, in German ä is sorted like ae.
I will have a look where the sorting is done and how to make it locale-aware.
Comment 4 malte 2007-09-06 19:53:28 UTC
Would be wonderful :)  Here are some hints for a few scandinavian languages:
swedish and finnish: ...xyzåäö
norwegian and danish: ...xyzæøå
Comment 5 Marcel Wiesweg 2007-09-09 17:18:12 UTC
I have now found out that Qt provides sorting based on locale.
When I start digikam with LAND=de_DE@euro set, "Ö" is sorted like "O" (OT: which as I learned is one valid variant of sorting, though I prefer sorting like oe), when I start with no lang set, it is sorted in front of all others.
Comment 6 caulier.gilles 2008-03-27 14:01:58 UTC
Marcel,

What's the issue for this files ?

Gilles Caulier
Comment 7 Marcel Wiesweg 2008-03-27 20:13:33 UTC
We are using localeAwareCompare(), and that's about all we can do. The rest depends on Qt and the set locale. As I tested in #5, it works for me if the LANG (LANG, not LAND as above) is set correctly.
Comment 8 caulier.gilles 2008-03-27 20:31:53 UTC
Marcel,

This is want mean than only a QT4 Model/View for all folder view can improve this issue with KDE4 port. Right ?

Gilles Caulier

Comment 9 Andi Clemens 2008-08-16 15:50:36 UTC
Since this is a Qt specific issue (or am I wrong?), we could close this bug...

Andi
Comment 10 caulier.gilles 2008-08-19 11:22:49 UTC
Andi,

Yes and no, because we  will need to take a care about sorting when Album tree view will be ported to Qt4 Model/view.

Gilles
Comment 11 caulier.gilles 2008-12-06 08:15:04 UTC
Andi,

Another candidate for Qt4 Model/View stuff

Gilles Caulier
Comment 12 Andi Clemens 2010-09-25 17:43:02 UTC
Closing some old bugreports that are related to old digiKam version, and that have not received answers for two years now.

If you think the reports are still valid, feel free to re-open them, but please provide updates and do not just open them without giving feedback.
Comment 13 caulier.gilles 2015-07-04 06:03:16 UTC
New digiKam 4.11.0 is available.

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?
Comment 14 caulier.gilles 2016-07-15 21:20:21 UTC
With digiKam 5.0.0, this problem is not reproducible.
I close this file now. Don't hesitate to re-open if necessary.
Gilles Caulier