Re: Case folding and the file chooser



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]