From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
To: emacs-devel@gnu.org
Subject: Re: Typing raw bytes
Date: Mon, 21 Jan 2013 20:38:01 +0100 [thread overview]
Message-ID: <m3wqv6ba3q.fsf@justinian.benny.turtle-trading.net> (raw)
In-Reply-To: <831udephuz.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Jan 2013 19:26:44 +0200")
>> I just tried 0x80, 0x90, 0x85, 0xff and 0x7f which all worked.
>
> What do you mean by "worked"? Did you try to save them?
I set the coding system to iso-8859-1, set read-quoted-char-radix to 16,
inserted the characters with C-q 80 RET etc., saved the file and the
result was this:
$ hexdump -C test.bin
00000000 80 90 85 ff 7f |.....|
00000005
$
> Inserting raw bytes into a multibyte buffer is playing with fire.
I inserted ISO8859-1 characters with the knowledge that ISO8859-1 is a
one-to-one mapping from Unicode codepoints to bytes. This is
effectively how the Unicode codepoints U+0000 to U+00FF are defined, so
I expect that that coding system should work that way.
For the record, for testing I am using a GTK-based Emacs 24.2.92 on X11
(GNU/Linux), running "emacs -Q", my locale is UTF-8, even
keyboard-coding-system is utf-8-unix. I tried the same with "emacs -Q
-nw" and this also works the same.
benny
next prev parent reply other threads:[~2013-01-21 19:38 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 [this message]
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
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=m3wqv6ba3q.fsf@justinian.benny.turtle-trading.net \
--to=b.riefenstahl@turtle-trading.net \
--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.