Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 304753

Summary: sys-apps/file wrong mimetypes with openoffice documents
Product: Gentoo Linux Reporter: Dmitry A. Bakshaev <dab1818>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to =sys-apps/file-5.0.3

Description Dmitry A. Bakshaev 2010-02-12 18:01:19 UTC
sys-apps/file wrong mimetypes with openoffice documents

Reproducible: Always

Steps to Reproduce:
1. file -i *

Actual Results:  
draw.odg:        application/octet-stream; charset=binary
spreadsheet.ods: application/octet-stream; charset=binary
text.odt:        application/vnd.oasis.opendocument.text; charset=binary


Expected Results:  
draw.odg:        application/vnd.oasis.opendocument.graphics; charset=binary
spreadsheet.ods: application/vnd.oasis.opendocument.spreadsheet; charset=binary
text.odt:        application/vnd.oasis.opendocument.text; charset=binary
Comment 1 Dmitry A. Bakshaev 2010-02-12 18:05:27 UTC
Created attachment 219369 [details, diff]
patch to =sys-apps/file-5.0.3

this patch resolve problem with opendocument files.
taken from 
http://www.jejik.com/articles/2009/06/fixing_opendocument_mime_magic_on_linux/
Comment 2 Dmitry A. Bakshaev 2010-10-23 10:52:10 UTC
fixed in sys-apps/file-5.0.4