[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Typing raw bytes
From: |
Michael Welsh Duggan |
Subject: |
Re: Typing raw bytes |
Date: |
Sun, 20 Jan 2013 15:55:13 -0500 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
> 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 hexl-mode RET" in a new buffer, but it evidently doesn't
> let you insert bytes, only edit existing bytes.
>
> Next I tried "C-x RET f raw-text RET" in a new buffer followed by
> "C-q NNN" etc., but the data written thereafter to disk is more bytes
> than I typed, because, I guess, "C-q NNN" inserts windows-1255
> characters (this is on Windows, where keyboard-coding-system is
> windows-1255-unix), and what winds up in the file is their UTF-8
> encoding.
Could you give an example that fails to do what is expected? I tried
what you referenced above, using "C-x RET f raw-text RET" and C-q insert
bytes. Saving the file worked just fine, resulting in the expected file
length. "M-x find-file-literally" on the resulting file also seemed to
work just fine. Note, however, that I am running Emacs under GNU/Linux.
--
Michael Welsh Duggan
(address@hidden)
- Re: Typing raw bytes, (continued)
Re: Typing raw bytes, Ivan Andrus, 2013/01/20
Re: Typing raw bytes,
Michael Welsh Duggan <=
Re: Typing raw bytes, Kenichi Handa, 2013/01/20
Re: Typing raw bytes, Stefan Monnier, 2013/01/20