Summary: | Gnumeric file recognized as application/x-font-tex-tfm | ||
---|---|---|---|
Product: | shared-mime-info | Reporter: | Marco Pesenti Gritti <mpgritti> |
Component: | freedesktop.org.xml | Assignee: | Jonathan Blandford <jrb> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | testcase |
Description
Marco Pesenti Gritti
2004-12-10 07:16:38 UTC
Created attachment 1507 [details] [review] testcase To reproduce just look at this file properties in nautilus. This looks like a bug in xdgmime :-/ 1st bytes of the file : 1f 8b 08 00 12 12 86 40 the gzip magic pattern looks for \037\213 (ie 0x1f 0x8b) the x-font-tex-tfm magic patterns are: \367\203 (0xf7 0x83) \367\131 (0xf7 0x59) \367\312 (0xf7 0xca) and they match at offset 0... Hrm, looked at the wrong entry for application/x-font-tex-tfm The corret entry is: <mime-type type="application/x-font-tex-tfm"> <_comment>TeX font metrics</_comment> <magic priority="50"> <match type="string" value="\000\021" offset="2"/> <match type="string" value="\000\022" offset="2"/> </magic> </mime-type> \000\021 is 0x00 0x11 \000\022 is 0x00 0x12 The latter one matches the attached file... at offset 2 Err, it matches at offset 3 rather Fixed in xdgmime CVS. |
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.