Bug 40131 - case sensitive directory sort order is ignored
Summary: case sensitive directory sort order is ignored
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-04 13:03 UTC by Rob Walker
Modified: 2004-03-16 18:50 UTC (History)
2 users (show)

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 Rob Walker 2002-04-04 12:50:37 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           3.0.0 (using KDE 3.0.0 )
Severity:          normal
Installed from:    compiled sources
Compiler:          gcc version 2.95.2 19991024 (release)
OS:                Linux (i686) release 2.2.14-5.0smp
OS/Compiler notes: 

The sort order of items in directories is not affected by the Case Insensitive Sort. This means that . files files starting with capitals and files starting with lower case are mixed up eg
a .b C d 
instead of:
.b C a d
as it was in KDE2

This applies both to Icon views and List views.

Apart from this KDE3 is looking good.

Rob

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Rob Walker 2002-04-04 13:27:21 UTC
It also happens with KFileDialog
Comment 2 John Firebaugh 2002-04-07 05:53:38 UTC
I can't reproduce this with CVS HEAD.

With Case Insensitive Sorting I get:
.b a C d

With case sensitive:
.b C a d

You example:
a .b C d
would never happen (.b is always sorted before).
Comment 3 gerard 2003-10-08 12:27:54 UTC
When I have 4 files : a,A,z,Z, I can never obtain this order : 
a,z,A,Z, that I should reach when asking for a case sensitive sorting. 
It is the same in icon view and  in list view. 
This is a very old problem in Konqueror. 
Comment 4 Thiago Macieira 2003-10-08 17:53:40 UTC
I can't reproduce either. Case sensitive sorting works fine, except that Konqueror forgets 
it's doing insensitive when you close it and open back again. 
Comment 5 gerard 2003-10-10 10:52:33 UTC
Perhaps I know why it does not work on my computer.  
I use Reiserfs, which uses another way to sort the files. 
If it is confirmed Reiserfs is the problem, it would be good to fix it or to hide this 
menu item when Reiserfs is detected. 
Comment 6 gerard 2003-10-12 09:18:36 UTC
Found why it does not work ! (thanks to Rob Walker) 
 
You just need "export LC_COLLATE=false" 
 
I think this does not close the bug, but shows what to do :  
Konqueror must dectect if it can sorte as asked. If the environment is wrong, there 
should be an explicit message saying what to do. 
Comment 7 Thiago Macieira 2003-10-12 17:25:54 UTC
What about me saying that it works? And I'm working on ReiserFS. My LC_COLLATE has 
nothing special. 
Comment 8 gerard 2003-10-12 23:37:01 UTC
Does your $LC_COLLATE show Fr_FR or POSIX ?
On my Mandrake, in the first case, it does not work, in the other one, it works.
With no LC_COLLATE, it works (Slackware)
Comment 9 Thiago Macieira 2003-10-13 06:24:26 UTC
Neither. LC_COLLATE was unset, which means its value is inherited from $LANG. But when I 
set LC_COLLATE=$LANG, the symptom starts to happen. 
 
This must affect somehow the sorting algorithm, even though it shouldn't. Therefore, t's a 
bug. (probably in Qt though) 
Comment 10 David Faure 2004-02-05 16:05:59 UTC
Subject: KDE_3_2_BRANCH: kdebase

CVS commit by faure: 

Fixed case-sensitive sorting - localeAwareCompare is often case-insensitive
(depending on LC_COLLATE), so check for that at runtime and use straight compare
when it is. *libc seem to lack a locale-aware case-sensitive string compare function.

Settings were also wrong: KonqListView* had a redundant bool, not always set correctly.
KonqIconViewWidget lacked such a 'redundant' bool, added one there :)
The default is now case-insensitive sorting, matching what was the actual default
almost everywhere.
CCMAIL: 40131-done@bugs.kde.org


  M +2 -1      konqueror/iconview/konq_iconview.cc   1.453.2.1
  M +4 -5      konqueror/listview/konq_listview.cc   1.203.2.1
  M +7 -6      konqueror/listview/konq_listviewitems.cc   1.59.2.2
  M +12 -2     konqueror/listview/konq_listviewwidget.cc   1.226.2.2
  M +1 -2      konqueror/listview/konq_listviewwidget.h   1.83.2.1
  M +11 -1     libkonq/kfileivi.cc   1.80.2.1
  M +3 -1      libkonq/kfileivi.h   1.48.2.1
  M +13 -1     libkonq/konq_iconviewwidget.cc   1.269.2.1
  M +3 -0      libkonq/konq_iconviewwidget.h   1.103.2.1
  M +2 -3      libkonq/konq_propsview.cc   1.83.2.1
  M +13 -0     libkonq/konq_settings.cc   1.52.2.1
  M +2 -0      libkonq/konq_settings.h   1.32.2.1



Comment 11 gerard 2004-02-05 23:30:21 UTC
Subject: Re:  case sensitive directory sort order is ignored

Le jeudi 05 Février 2004 16:06, David Faure a écrit :
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
> You are a voter for the bug, or are watching someone who is.
>
> http://bugs.kde.org/show_bug.cgi?id=40131
> faure@kde.org changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
>
:-)))))
>
Gérard

Comment 12 Stefan Wagner 2004-03-16 18:50:54 UTC
Do I have to recompile konqueror?
I tried:

export LC_COLLATE=POSIX
konqueror

and it's still sorting mixed.

Yes, I'm using reiserfs, but the Midnight-Commander has no trouble sorting case sensitive.