From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: don't assume ELF binaries are multicultural text
Date: Wed, 12 Jul 2006 10:44:08 -0600 [thread overview]
Message-ID: <e938u2$vis$1@sea.gmane.org> (raw)
In-Reply-To: <E1G0Oxq-0005CU-AO@jidanni1>
Dan Jacobson wrote:
> $ emacs /bin/sh
> Loading thai-util...
> Loading mule-util...done
> Loading thai-util...done
> Loading lao-util...done
> Loading ind-util...done
> Loading composite...done
> Loading tibet-util...done
>
> Got an idea, why not say "Uh, Holmes, /bin/sh is a ELF 32-bit LSB
> executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0,
> dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped,
> shall we w: wrongly assume it is multicultural text, thus bloating
> emacs for the remainder of the session, h: invoke some hex editing
> mode, q: back out of your certainly mistaken attempt to open the wrong
> file, f: forever allow me to blunder ahead as multicultural text next
> time..."
(setq auto-coding-regexp-alist
(cons '("\\`\177ELF" . no-conversion)
auto-coding-regexp-alist))
You can find more interesting byte patterns in /etc/magic.
(setq auto-mode-alist
(cons (cons "\\`/bin/[^/]+\\'" 'hexl-mode)
auto-mode-alist))
You can find more directories with binary files in (getenv "PATH") or
load-path.
--
Kevin
prev parent reply other threads:[~2006-07-12 16:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 20:36 don't assume ELF binaries are multicultural text Dan Jacobson
2006-07-12 16:44 ` Kevin Rodgers [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='e938u2$vis$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.