Package: file
Severity: wishlist
Tags: patch

A number of years ago I did some reverse engineering[1] of the
CHM/HtmlHelp format[2]. In [2], the DWORD at 0xC in the initial header
is listed as "1 (unknown)". According to my tests, this has been 0 in
some files and 1 in other ITSF files. I would therefore suggest removing
the last 4 bytes from the "MS Windows HtmlHelp Data" magic, patch here:

--- a/magic/Magdir/msdos
+++ b/magic/Magdir/msdos
@@ -703,7 +703,7 @@
 !:mime application/vnd.ms-tnef

 # HtmlHelp files (.chm)
-0      string  ITSF\003\000\000\000\x60\000\000\000\001\000\000\000    MS 
Windows HtmlHelp Data
+0      string  ITSF\003\000\000\000\x60\000\000\000    MS Windows HtmlHelp Data

 # GFA-BASIC (Wolfram Kleff)
 2      string          GFA-BASIC3      GFA-BASIC 3 data

     1. http://chmspec.nongnu.org/latest/
     2. http://www.russotto.net/chm/chmformat.html

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to