GNU bug report logs - #20891
emacs: Back off if .doc is not an Office document

Previous Next

Package: emacs;

Reported by: era+emacs <at> iki.fi

Date: Wed, 24 Jun 2015 11:20:03 UTC

Severity: minor

Tags: fixed

Found in version 24.4+1-4ubuntu5

Fixed in version 27.1

Done: Robert Pluim <rpluim <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: era+emacs <at> iki.fi, 20891 <at> debbugs.gnu.org, stefan <at> marxist.se
Subject: bug#20891: emacs: Back off if .doc is not an Office document
Date: Sat, 09 Nov 2019 21:14:52 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> I don't think it'd be any performance problem -- we'd just have to read
>> the first 8 bytes of the file to see whether the magic sequence is there.
>
> *.doc files are rare nowadays.  Do the *.docx files have the same
> signature?  I doubt that, since they are actually *.zip files in
> disguise.

Yeah, *.docx have a different signature, so this would be for *.doc files
only (and since the Windows *.doc files are becoming rarer, perhaps that
means that doing doc-view only on files that have the magic bytes is
more important than it used to be).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.