[Bug 1243938] Re: 12.04 LTS (Precise) libmagic1 not returning ANY mime-type for some Microsoft Office files

Launchpad Bug Tracker 1243938 at bugs.launchpad.net
Thu Oct 24 18:18:04 UTC 2013


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: file (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to file in Ubuntu.
https://bugs.launchpad.net/bugs/1243938

Title:
  12.04 LTS (Precise) libmagic1 not returning ANY mime-type for some
  Microsoft Office files

Status in “file” package in Ubuntu:
  Confirmed

Bug description:
  I am working on some software that will analyze arbitrary files, and
  determine the mime type using libmagic1 (tied closely with the "file"
  package).

  I have a C program that links with libmagic1, and it calls
  magic_file() correctly, but for certain files it's returning an empty
  string for the mime type.  It appears to be Microsoft Office documents
  (such as Word and Excel documents), and the mime type returned is  ";
  charset=binary" instead of something like "application/vnd.ms-excel;
  charset=binary".  At the very least, I would expect it to return
  "application/octet-stream" instead of just nothing.

  This has been fixed in later versions of libmagic1, since I cannot
  reproduce on 13.04 raring or 13.10 saucy.  I've also downloaded and
  compiled file 5.10 and 5.15 from source
  (http://www.darwinsys.com/file/) on 12.04 LTS and that worked fine as
  well, so I'm confident this is a bug in the libmagic1 package.

  Can we get a fix pushed for 12.04 LTS?

  Thanks

  lsb_release -rd returns "Ubuntu 12.04.3 LTS" on my test system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/1243938/+subscriptions



More information about the foundations-bugs mailing list