Nautilus is not honoring the system-wide LC_COLLATE

Bug #588328 reported by Uqbar
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Nautilus
Expired
Medium
nautilus (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: nautilus

In my home directory I have the following directories:
Destop
bin
.config
.Skype
In /etc/default/locale I also have
LC_COLLATE="C"

The "ls -ad" command correctly shows:
----
.Skype .config Desktop bin
----
as "." is ASCII 46, "A" is ASCII 65 and "a" is ASCII 97.
Nautilus, instead shows:
----
Desktop
bin
.Skype
.config
----

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nautilus 1:2.30.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue Jun 1 16:56:30 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=it_IT.utf8
 SHELL=/bin/bash
SourcePackage: nautilus

Revision history for this message
Uqbar (uqbar) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in nautilus (Ubuntu):
importance: Undecided → Low
Angel Abad (angelabad)
Changed in nautilus:
importance: Undecided → Unknown
status: New → Unknown
Changed in nautilus:
status: Unknown → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for sent it upstream.

Changed in nautilus (Ubuntu):
status: New → Triaged
Revision history for this message
Cedric L'homme (rangzen) wrote :

Hello,
Nautilus use it if you define LC_COLLATE in /etc/environment instead of /etc/default/locale

Revision history for this message
Uqbar (uqbar) wrote :

Cedric, LC_COLLATE (as well as all LC_* settings) are environment variables when they are defined, and not settings in a configuration file.
Nautilus should inspect its environment for localization variables like $LANGUAGE and, of course, $LC_*.

Changed in nautilus:
importance: Unknown → Medium
Revision history for this message
dobey (dobey) wrote :

This appears to be that Nautilus simply sorts hidden files (and directories) after all the visible files and directories, and has nothing to do with what the value of LC_COLLATE is (the hidden files and directories are correctly sorted within themselves), but is simply a bug that it is sorting them separately, rather than as part of the whole set.

Revision history for this message
Uqbar (uqbar) wrote :

Try this in an empty directory:
~ touch A b C d
Then try Nautilus in that directory with LC_COLLATE="C".
You'll see this order: A b C d instead of the right one: "A C b d".
It doesn't matter whether the first character in the name is a "." or not.
That "simply sorts..." sentence would require a quite complex and weird code in the Nautilus sources, though.

Changed in nautilus:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.