From: Kenichi Handa <handa@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Typing raw bytes
Date: Mon, 21 Jan 2013 08:22:17 +0900 [thread overview]
Message-ID: <87y5fnmod2.fsf@gnu.org> (raw)
In-Reply-To: <83hambpqds.fsf@gnu.org> (message from Eli Zaretskii on Sun, 20 Jan 2013 22:10:23 +0200)
In article <83hambpqds.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> 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. For instance,
M-x find-file-literally RET _FILE_NAME_ RET
C-q 3 7 7 RET
C-x C-s
or
C-x b _NEW_BUFFER_NAME_ ERT
M-x toggle-enable-multibyte-characters RET
C-q 3 7 7 RET
C-x C-s
---
Kenichi Handa
handa@gnu.org
next prev parent reply other threads:[~2013-01-20 23:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-20 20:10 Typing raw bytes Eli Zaretskii
2013-01-20 20:50 ` Ivan Andrus
2013-01-20 20:55 ` Michael Welsh Duggan
2013-01-20 21:33 ` Eli Zaretskii
2013-01-20 21:43 ` Michael Welsh Duggan
2013-01-20 20:59 ` Benjamin Riefenstahl
2013-01-20 21:35 ` Eli Zaretskii
2013-01-21 14:47 ` Benjamin Riefenstahl
2013-01-21 17:26 ` Eli Zaretskii
2013-01-21 19:38 ` Benjamin Riefenstahl
2013-01-21 20:02 ` Eli Zaretskii
2013-01-20 20:59 ` Andreas Schwab
2013-01-20 21:31 ` Eli Zaretskii
2013-01-20 23:02 ` Andreas Schwab
2013-01-20 23:22 ` Kenichi Handa [this message]
2013-01-21 3:50 ` Eli Zaretskii
2013-01-21 17:39 ` Eli Zaretskii
2013-01-21 1:40 ` Stefan Monnier
2013-01-21 3:51 ` Eli Zaretskii
2013-01-21 15:38 ` Stefan Monnier
2013-01-21 17:38 ` Eli Zaretskii
2013-01-22 0:59 ` Stefan Monnier
2013-01-21 14:19 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5fnmod2.fsf@gnu.org \
--to=handa@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.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 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.