Bug 7387 - magic for text/x-matlab and tex/x-tex interferes with magic for application/pdf and application/postscript
Summary: magic for text/x-matlab and tex/x-tex interferes with magic for application/...
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-01 13:57 UTC by Ed Catmur
Modified: 2006-07-02 01:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
tex-matlab-%-lower-priority.patch (854 bytes, patch)
2006-07-01 14:05 UTC, Ed Catmur
Details | Splinter Review

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.