From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: Magic MIME
Date: Mon, 11 Feb 2008 22:25:32 -0500 [thread overview]
Message-ID: <jwvskzyx3le.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ve4vfc1m.fsf@jurta.org> (Juri Linkov's message of "Mon, 11 Feb 2008 22:55:33 +0200")
> Yes, I remember what a mess was the recognition of image files. But I think
> that for other binary formats this could by simplified. If, say, a file
> doesn't start with the "0x8080ffff 0x0000081a" signature there is no sense
> to try treating it as an arc archive even if it has the .arc extension.
Agreed. But just because a file starts with "0x8080ffff 0x0000081a"
shouldn't be enough of a reason to treat it as an arc archive: we need to
look at the filename as well.
> IIRC, the decision for the image file extensions taking precedence over
> the image file content was based solely on the security holes that some
> image libraries reportedly have.
I don't think so. I do remember that it was decided not to introduce
the two-sided (file-name and file-contents) method so close to
the release. So now would be a better time.
We could associate "\\.arc\\'" with '(lisp-arc-mode archive-mode)
and associate "0x8080ffff 0x0000081a" to archive-mode (and some other
pseudo-magic thingy for Arc-the-language).
Stefan
next prev parent reply other threads:[~2008-02-12 3:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-10 23:18 Magic MIME Juri Linkov
2008-02-11 2:24 ` Stefan Monnier
2008-02-11 20:55 ` Juri Linkov
2008-02-12 3:25 ` Stefan Monnier [this message]
2008-02-11 4:16 ` Eli Zaretskii
2008-02-11 20:59 ` Juri Linkov
2008-02-11 21:41 ` Eli Zaretskii
2008-02-12 3:51 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvskzyx3le.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).