I'm stuck on mimemagic 0.1.7 because of the new PDF magic.
This change is the problem:
- ['application/pdf', [[0, "%PDF-"]]],
+ ['application/pdf', [[0..1024, "%PDF-"]]],
Turns out LOTS of files have %PDF- in the first 1024 bytes. Here are two:
Is there a way to report this broken magic upstream?
(I originally commented on the commit)
The magic file is automatically generated from the freedesktop mime database. But it might be possible to add a "patch table file" which won't be overwritten when the magic database is updated. Patches welcome!
Is there any way to tell FreeDesktop that their mime database is broken? It seems best to fix the problem at the source.
If not then I guess a patch table is the way to go. It would fix the other open issue too.
Still an issue?
We now have mimemagic/overlay, but I would prefer upstream fixes.
Hi, sorry I missed this. Yep, still an issue:
I'll add an overlay if needed, thanks! So far, remaining on 0.1.7 has been fine.