[File] Suboptimal detection of various LibreOffice zip-based files

Gioele Barabucci gioele at svario.it
Mon May 11 09:06:57 EDT 2026


Hello,

file 5.46 misdetects (or, better, suboptimally detects) some files used 
or produced by LibreOffice. The following examples are taken from the 
Debian package libreoffice-common [1], directory 
`/usr/lib/libreoffice/share/`.

Would it be possible to extend the file command and the magic file to 
detect them as separate file types?

* autotext/en-US/standard.bau: Zip data (MIME type "K"?)

Should be "LibreOffice AutoText macros" (originally "Bausteindatei").

* autocorr/acor_en-US.dat: Zip data (MIME type "K"?)

Should be "LibreOffice AutoCorrect entries"

* palette/standard.sop: Zip archive data, made by v3.0 UNIX, extract 
using at least v1.0

Should be "LibreOffice drawing patterns" (originally "StarOffice Patterns")

* palette/standard.sob: Zip archive data, made by v6.3 UNIX, extract 
using at least v2.0

Should be "LibreOffice background pictures" (originally "StarOffice 
Bitmap" or "StarOffice Bild", probably)

(I've used "LibreOffice" here, somewhere else file uses "StarOffice".)

[1] https://packages.debian.org/sid/all/libreoffice-common/download

Regards,

-- 
Gioele Barabucci


More information about the File mailing list