[EMAIL PROTECTED] (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/ _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
