View Issue Details

IDProjectCategoryView StatusLast Update
0000018fileGeneralpublic2018-08-01 08:51
Reporteranonymous Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000018: --mime-encoding reports a mangled string for .doc files
DescriptionBackground in https://stackoverflow.com/a/45177322/113632


Calling --mime on a .doc file prints:

$ file --mime /tmp/example.doc
/tmp/example.doc: application/msword; charset=binary

Which leads me to believe --mime-encoding should print "binary", but instead it prints "application/mswordbinary":

$ file --mime-encoding /tmp/example.doc
/tmp/example.doc: application/mswordbinary

Which appears to be the concatenation of the type and the encoding. Experimenting with several other file types all print *just* their encoding (e.g. binary, us-ascii, etc.).
Steps To Reproduce1. Get a .doc file
2. Run `file --mime-encoding YOUR_FILE.doc`
TagsNo tags attached.

Activities

christos

2018-07-25 07:16

manager   ~0000018

Fixed on HEAD, thanks!

christos

2018-08-01 08:51

manager   ~0000020

feedback timeout

Issue History

Date Modified Username Field Change
2018-07-25 03:23 anonymous New Issue
2018-07-25 07:16 christos Assigned To => christos
2018-07-25 07:16 christos Status new => assigned
2018-07-25 07:16 christos Status assigned => feedback
2018-07-25 07:16 christos Note Added: 0000018
2018-08-01 08:51 christos Status feedback => resolved
2018-08-01 08:51 christos Resolution open => fixed
2018-08-01 08:51 christos Note Added: 0000020