Am 13.05.2021 um 11:49 teilte JCGoran mit: Hi,
Latex source files which start with `%!` (usually used to specify directives, as described here: https://tex.stackexchange.com/q/78101) are detected as `PostScript document text`, mime type `application/postscript`, rather than `text/x-tex` or similar. The following (valid) Latex code shows the problem: Same here for a TeX font metric file:
hille@sid-amd64:/usr/share/texlive/texmf-dist/fonts/tfm/production/spectral$ file /usr/share/texlive/texmf-dist/fonts/tfm/production/spectral/Spectral-ExtraBoldItalic-lf-ly1.tfm /usr/share/texlive/texmf-dist/fonts/tfm/production/spectral/Spectral-ExtraBoldItalic-lf-ly1.tfm: PostScript document text
The file too starts with "%!". According to [1] the magic byte for Postscript is "%!PS". So the check is not strict enough to rule out false positives.
Hilmar [1] https://en.wikipedia.org/wiki/List_of_file_signatures -- sigfault
OpenPGP_signature
Description: OpenPGP digital signature