GNOME Bugzilla – Bug 110958
content matchers taking precedence over extension matchers
Last modified: 2004-12-22 21:47:04 UTC
Ever since I compiled gnome 2.3, some mime types changed: .dia and .gnumeric files, when in uncompressed form, are detected as text/xml. When these files are compressed, though, they are detected correctly. So, I'm convinced there must be a content matcher that detects text/xml (which should be application/xml, btw), before any extension matcher is tried. This happened in gnome 2.3 only, it was working fine in 2.2.
This seems to be caused by a gnome-mime-data change: 2003-04-02 Paolo Maggi <paolo.maggi@polito.it> * gnome-vfs-mime-magic: added a simple rule to recognise xml files The addition of this breaks sniffing for all xml based file formats, and should not have been added.
So, can this be fixed? Isn't it possible to lower the precedence of that XML detection code, so that filename matchers get a first chance to match?
2003-05-02 Bastien Nocera <hadess@hadess.net> * gnome-vfs-mime-magic: move down the ranking the tests to recognise XML files, and move the xml-derived formats above it. This fixes detection of uncompressed Dia, Gnumeric and Abiword documents (Closes: #110958)
Bastien, I don't see your ChangeLog entry in gnome-vfs HEAD. It hasn't been checked in, has it? Anyway, thanks for fixing it.
Gustavo, this was a bug in gnome-mime-data, not gnome-vfs. It's very much checked in.
Oh, sorry! I didn't realize it was in gnome-mime-data instead of gnome-vfs.