Bug 3256 - XML file recognized as Makefile
Summary: XML file recognized as Makefile
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 02:48 UTC by Christian - Manny Calavera - Neumair
Modified: 2006-02-21 08:57 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Remove a bad glob for makefile mime type (591 bytes, patch)
2005-12-15 11:07 UTC, Björn Lindqvist
Details | Splinter Review

Description Christian - Manny Calavera - Neumair 2005-05-10 02:48:11 UTC
From GNOME BugZilla, bug 166671 [1]:

Distribution/Version: Gentoo

I got a Docbook XML file on the subject of makefiles, called
makefile-autotools.dbk. I found out (by trying to open it with Yelp) GnomeVFS
seems to determine the MIME type of the file wrongly ("file" works fine). The
file is tagged as text/x-makefile. If I rename it to makefile-autotools.xml, it
is tagged as text/xml, which is correct. Also if I rename it to
writing-makefiles-autotools.dbk, GnomeVFS figures out its a text/xml file.
I suspect (just suspect, didnt check) GnomeVFS tags all files starting with
"makefile" or something as text/x-make?

The file that was tagged wrongly is here:
http://code.eikke.com/index.php?dir=misc/&file=makefile-autotools.dbk

[1] http://bugzilla.gnome.org/show_bug.cgi?id=166671
Comment 1 Björn Lindqvist 2005-12-15 11:07:25 UTC
Created attachment 4086 [details] [review]
Remove a bad glob for makefile mime type
Comment 2 Björn Lindqvist 2005-12-15 11:14:07 UTC
I think having the glob "makefile*" to match Makefile is permissive and causes
many files which are not Makefiles to be displayed as Makefiles. I'm not sure
removing the glob is the correct thing to do because it must have been put there
for some reason. But its been 10 months since the bug was filed and what are the
odds that someone will complain if the glob is removed ...
Comment 3 Christian - Manny Calavera - Neumair 2006-02-22 03:57:16 UTC
Thanks, I've removed that glob.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.