Christoph Biedl edited this page 2 years ago

Ubuntu bugs

As I don't commit to Ubuntu but still might take some input from there, here the list of bugs as seen on the Ubuntu bug tracker, with a few comments.

Sort order is by bug number, descending

#1788958 /usr/bin/file fails with Bash process substitution

Already upstreamed: https://bugs.astron.com/view.php?id=32

#1789461 file reports incorrect bug reporting location

Mostly fixed in newer Versions. Remaining bits filed as https://bugs.astron.com/view.php?id=36

#1790806 file -i command reports "text/x-c" mime type for .srt file (Subtitle / Plain Text file)

#1777502 'file -r' returns invalid option


#1763570 file does not fully recognize ISO images

Regression introduced in FILE5_28-41-g662bf5e7:

commit 662bf5e776843c33c45da0aa8bc10e619edb74e7 (refs/bisect/bad)
Author: Christos Zoulas <christos@zoulas.com>
Date:   Mon Sep 5 08:34:25 2016 +0000

    Fix cdrom dup magic printing (Joerg Jenderek)

TODO: Provide a fix.

#1747711 file mis-identifies modern executables as application/x-sharedlib

Feature, result of the changed compile options, see the stretch release notes,


#1741128 libmagic1 in 16.04 reports XLS files as application/CDFV2-unknown


Allegedly fixed in newer versions.

#1726096 "file --extension" not work with PNG files

forwarded https://bugs.astron.com/view.php?id=21

#1677244 "UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc4' in position 69: surrogates not allowed" with mime.file() on path from os.walk

#1646233 file command incorrectly identifies a gzipped file as being a Minix filesystem

Fixed in FILE5_16-6-g5c945517:

commit 5c945517d8b4e4c7db9f132f04fa4814dc957a83
Author: Christos Zoulas <christos@zoulas.com>
Date:   Wed Dec 11 17:55:00 2013 +0000

    Bump the strength of gzip and reorder printing of attributes (Thomas Ledoux)

#1574818 Selected file from search is not actually selected

This is not about file.

#1511720 fails to identify what program left a core file


There has been a lot of fine-tuning in the elf parsing code in the past years, so this report might be stale.

#1434647 'file -i' reports application/octet-stream for mp3 files


#1398263 package file 1:5.14-2ubuntu3.2 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration

unreproducible, acient

#1376968 file identifies a perl script as an awk script

#1369679 file misidentifies an epub as 'x86 boot sector'

#1339186 Wrong version 1.00 of libmagic

#1256550 image/x-tga isn't detected

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

#1174230 git objects seen as VAX COFF by 'file' utility

#1166852 file reports office trash files as .exe-ms

#1162300 'file' reports improper mime type on video

#1058191 file doesn't recognise all "Linux make config build file[s]"

#1008102 'file -i' reports wrong MIME type for perl scripts

#953971 Long run time and high cpu usage when trying to determine type of file padded with 'LF'-s

#946696 ICE pakcer different from SNDH format

#912791 file thinks golang source files (*.go) are text/x-java types

#900897 Created, last saved and last printed dates for .doc files are off by 1 day

#877884 file utility truncates UUID for LUKS-encrypted volumes

#876962 file --help claims -L is the default, but it isn't

#793271 Does not detect audio/ogg

#792062 file doesn't recognize mkv files

#736259 file utility: epub files identified as 'data'

#697259 PostScript file misclassified as PalmOS application

#683668 file command produces wrong message

#620827 magic for High Sierra CD-ROM filesystem data is wrong

#603128 python-magic is incomplete on Ubuntu LTS?

Misunderstanding about the different python-magic implementations. From 1:5.32-2 on, the Implementation by Adam Hupp is used, ending the problems reported here.

#594508 file do not recognize Microsoft OpenXML format

#578213 Add more common flac sample rates

#521689 file doesn't recognize AVF video container

#518769 Python script mime type is text/x-java !

#506323 typo in magic file for gnome-keyring (AEL vs. AES)

Fixed in FILE5_11-31-g156e5d0a:

commit 156e5d0a9f1c06fa3a32c2911d626960468bdb43
Author: Christos Zoulas <christos@zoulas.com>
Date:   Thu Jun 21 01:19:51 2012 +0000

    PR/153: fix typo

#435199 utility 'file' does not recognize hfs disk image

#420963 file command reports incorrect mime type for mkv files

#268365 file doesn't recognize .hs files as haskell, thinks they're java

#105028 Please mention in man page how /etc/magic.mime affects `file'