Bug 191865 - File, folder sorting problem
Summary: File, folder sorting problem
Status: RESOLVED DUPLICATE of bug 181211
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 01:35 UTC by Martin Girard
Modified: 2009-05-08 00:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Girard 2009-05-07 01:35:04 UTC
Version:           1.2.1 (using 4.2.2 (KDE 4.2.2) "release 114", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.21-0.1-default

In elusive circumstances, file names with multiple terms (separated by an ampersand) may not sort properly; files' first terms may sometimes be considered equal even though their lengths are different, if one's beginning contains the other (ex: ABC, ABC'DE). Then the order is decided by comparing the second term.

The bug can be reproduced by creating files/folders named *exactly* as follows:
E & G
E & J
Em & M
E & S
Choosing different file names may yield different results even though the relative order should not change. I could not narrow the problem further down.
Comment 1 Peter Penz 2009-05-07 23:54:42 UTC
Thanks for the report, this seems to be a duplicate of 181211 (at least the same function is responsible for the comparison).

*** This bug has been marked as a duplicate of bug 181211 ***
Comment 2 Peter Penz 2009-05-08 00:43:03 UTC
SVN commit 965099 by ppenz:

Added test cases for bug 191865 and 181211. The tests pass -> the root cause of the issue seems to be in the used proxy model. I'll check this during the next week...

CCBUG: 191865
CCBUG: 181211

 M  +9 -0      kstringhandlertest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=965099