[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Collating order
From: |
Ole Laursen |
Subject: |
Re: Collating order |
Date: |
06 Jul 2005 13:01:00 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
address@hidden (Bob Proulx) writes:
> It is not that I don't want to do anything about it. It is that I
> can't do anything about it. The locale is set by the user. I have no
> control over it. (Sometimes the locale is set by the distro vendor
> without the user's knowledge or control. That is bad.)
FWIW, glib 2.7 has g_utf8_collate_key_for_filenames now:
http://mail.gnome.org/archives/gnome-announce-list/2005-June/msg00013.html
It produces a collation key that can be used for sorting with strcmp()
which takes dots and numbers into account. It is used for sorting file
names in nthe GTK+ file chooser widget and in Nautilus, the file
manager for GNOME.
The source code with a largish comment on how it works is at the
bottom here:
http://cvs.gnome.org/viewcvs/glib/glib/gunicollate.c?rev=1.17&view=markup
--
Ole Laursen
http://www.cs.aau.dk/~olau/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Collating order,
Ole Laursen <=