Case insensitive mimetype matching edge case
Francois Gouget
fgouget at codeweavers.com
Wed Sep 2 02:21:09 PDT 2009
David Faure a écrit :
[...]
> I think it's simpler to make *.c case-sensitive as well, so that we don't need
> to care about priorities. That's what I did in my most recent patch sent to
> this list and in my implementation, works fine.
It seems to m ethat the lack of a defined order will make it hard for
third-parties (ISVs) to add case-sensitive globs that conflict with an
existing case-insensitive glob.
So imagine we go back a few decades and an ISV ports his compiler for a
newfangled object-oriented programming language stored in .C source
files. Because there's already a glob for .c files that ISV would be
unable to add a glob for .C files without also modifying the file
shipped by the desktop environment for .c files. Bad!
Of course this kind of situation may also never happen again.
(and creating a new extension that only differs in case with an existing
one was a pretty bad idea in the first place)
--
Francois Gouget
fgouget at codeweavers.com
More information about the xdg
mailing list