File is a utility that classifies arbitrary files of any type mainly by their contents. It is considered standard on most Unix distributions. It can output either human-readable concise descriptions or MIME types for machine handling.
The Python bindings were updated and fixed. Magic support for OCF (EPUB) files and for lrzip files was added. Zip file magic was adapted for files with unsupported special types. Many more magic updates and fixes were made. Several minor bugs were fixed.
Major changes are CDF file parsing, indirect magic, and overhaul in MIME and ASCII encoding handling. The file ~/.magic is now handled in addition to the default magic file, not instead of it. A non-zero exit code is now emitted on errors on any file, not just the last processed file. Magic definitions were improved and expanded.