emacs-devel
[Top][All Lists]
Advanced

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

Re: Typing raw bytes


From: Eli Zaretskii
Subject: Re: Typing raw bytes
Date: Mon, 21 Jan 2013 19:39:18 +0200

> Date: Mon, 21 Jan 2013 05:50:31 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> 
> > From: Kenichi Handa <address@hidden>
> > Cc: address@hidden
> > Date: Mon, 21 Jan 2013 08:22:17 +0900
> > 
> > In article <address@hidden>, 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.
> > 
> > Please use C-q in a unibyte buffer.
> 
> But "C-x RET f raw-text RET" does just that.

Ignore me: raw-text doesn't make the buffer unibyte.

find-file-literally is the way.  Thanks.



reply via email to

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