emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Typing raw bytes


From: Benjamin Riefenstahl
Subject: Re: Typing raw bytes
Date: Sun, 20 Jan 2013 21:59:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Hi Eli,

> Suppose I want to create a file whose contents is a series of certain
> bytes.  How would I go about that?

I tried M-x set-buffer-coding-system RET iso-8859-1 RET and it seems to
work.  I also had to set read-quoted-char-radix to 10 to be able to use
codepoints in the form that I know them ;-).

The trick here is that iso-8859-1 uses the same codepoints as Unicode,
but encodes them directly as bytes.

I think this should work with the no-conversion/binary coding system,
but it doesn't.  I do not know if the current behaviour of
no-conversion/binary is useful to somebody.

benny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]