Package: file
Version: 4.24-4
Severity: important
What I 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/atom+xml for example).
What happened instead:
More often than not, just text/plain is returned. Sometimes, like
for /usr/share/mime/text/x-haskell.xml, text/x-pascal is returned,
or for /usr/share/xml/docbook/schema/dtd/catalog.xml, text/html is
reported, both of which are wrong.
I ran:
locate *.xml | xargs file --brief --mime-type |
egrep '(application|text)/xml'
and got no output at all. The `locate` command found about 28000
files.
This bug was originally reported against the file package in Ubuntu:
<https://bugs.edge.launchpad.net/ubuntu/+source/file/+bug/285031>
The file package in Intrepid is sync'ed directly with Debian, hence
why I'm forwarding this bug report.
-- System Information:
Debian Release: lenny/sid
APT prefers intrepid-updates
APT policy: (500, 'intrepid-updates'), (500, 'intrepid-security'), (500,
'intrepid')
Architecture: i386 (i686)
Kernel: Linux 2.6.27-7-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages file depends on:
ii libc6 2.8~20080505-0ubuntu7 GNU C Library: Shared libraries
ii libmagic1 4.24-4 File type determination library us
ii zlib1g 1:1.2.3.3.dfsg-12ubuntu1 compression library - runtime
file recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]