Re: Case folding and the file chooser
- From: Christophe Fergeau <teuf gnome org>
- To: Federico Mena Quintero <federico ximian com>
- Cc: "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>, GTK+ development mailing list <gtk-devel-list gnome org>, mmeeks novell com
- Subject: Re: Case folding and the file chooser
- Date: Wed, 09 Mar 2005 09:57:36 +0100
Le mardi 08 mars 2005 à 14:09 -0600, Federico Mena Quintero a écrit :
> 1. Also, even if it does, xdgmime uses
> fnmatch() without case-folding.
Wrt extension matching, the shared mime info spec says:
« Applications MUST first try a case-sensitive match, then try again
with the filename converted to lower-case if that fails. This is so that
main.C will be seen as a C++ file, but IMAGE.GIF will still use the
*.gif pattern. »
This part of the spec should work fine with xdgmime too, see
https://bugs.freedesktop.org/show_bug.cgi?id=732
fnmatch is only used for "complex" patterns I think (ie those that don't
look like *.ext)
Christophe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]