Code to recognize MS-Word document files?

Christos TZOTZIOY Georgiou tzot at
Wed Mar 5 00:50:43 CET 2003

On 04 Mar 2003 16:59:40 GMT, rumours say that grante at (Grant
Edwards) might have written:

>The code needs to run on a win32 platform, but I can probably
>glean enough information from /usr/share/magic to figure it

I think all MS office documents do have first byte "0xd0" and second
byte "0xc?", where ? means I don't remember, simulating hex-talk for
"doc" (0xd0c?)
TZOTZIOY, I speak England very best,
bofh at
(I'm a postmaster luring spammers; please spam me!
...and my users won't ever see your messages again...)

More information about the Python-list mailing list