Hi Paul,

> > I wonder how sensible it would be to, say, slurp the first 100 bytes and see
> > whether we start with a "{" (or some other heuristic) and, if so, try and
> > parse the file as JSON etc.
> 
> I think it would make diffoscope very slightly more useful if it could
> fill in the gaps in MIME type detection for this and other cases.

https://anonscm.debian.org/git/reproducible/diffoscope.git/commit/?id=2a758d3d0205e934ed6dffebb5d6462b00fe590d

> If it turns out to be too expensive then it could have an option.

Mo' options, mo' problems :)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-

Reply via email to