file(1) no longer recognises XML content
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
file (Debian) |
Fix Released
|
Unknown
|
|||
file (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: file
1) The release of Ubuntu you are using, via 'lsb_release -rd' or
System -> About Ubuntu.
Intrepid
2) The version of the package you are using, via 'apt-cache policy
packagename' or by checking in Synaptic.
4.24-4
3) What you expected to happen
That `file --mime-type some.xml` (where some.xml is any file
containing valid XML) should return either text/xml, application/xml,
or something more specific (like application/
4) What happened instead
More often than not, just text/plain is returned. Sometimes, like for
/usr/share/
/usr/share/
both of which are wrong.
I ran:
locate *.xml | xargs file --brief --mime-type |
egrep '(application|
and got no output at all. The `locate` command found about 28000
files.
Changed in file (Debian): | |
status: | Unknown → Fix Released |
I've confirmed this using file version 4.24-4 on Intrepid.