Bug 7387

Summary: magic for text/x-matlab and tex/x-tex interferes with magic for application/pdf and application/postscript
Product: shared-mime-info Reporter: Ed Catmur <ed>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: tex-matlab-%-lower-priority.patch

Description Ed Catmur 2006-07-01 13:57:52 UTC
text/x-matlab and text/x-tex both have, with priority 50,

      <match value="%" type="string" offset="0"/>

This interferes with many file types with magic with "%" at offset 0, including
application/pdf and application/postscript.

This breaks e.g. reading papers on ArXiv; they must be renamed to an appropriate
extension or evince will refuse to read them.

Just matching the first byte shouldn't be enough to justify a match at priority
50. The Matlab and TeX matches should be demoted to (say) priority 30.
Comment 1 Ed Catmur 2006-07-01 14:05:33 UTC
Created attachment 6091 [details] [review]
tex-matlab-%-lower-priority.patch
Comment 2 Christian - Manny Calavera - Neumair 2006-07-02 01:13:49 UTC
Thanks for your efforts, but a similar patch was already committed:

2006-05-09  Christian Neumair  <chris@gnome-de.org>

        * freedesktop.org.xml.in: lower priority of "%" magic patterns to 10.

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.