From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.devel Subject: Re: Typing raw bytes Date: Sun, 20 Jan 2013 21:59:44 +0100 Message-ID: References: <83hambpqds.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358715621 22421 80.91.229.3 (20 Jan 2013 21:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 21:00:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 20 22:00:40 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tx20M-0002Vx-SS for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2013 22:00:38 +0100 Original-Received: from localhost ([::1]:54412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx202-0002sM-P3 for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2013 16:00:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx1zu-0002m6-5o for emacs-devel@gnu.org; Sun, 20 Jan 2013 16:00:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tx1zn-00052T-0F for emacs-devel@gnu.org; Sun, 20 Jan 2013 16:00:08 -0500 Original-Received: from odoacer.turtle-trading.net ([217.91.34.180]:53615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx1zm-0004tP-P9 for emacs-devel@gnu.org; Sun, 20 Jan 2013 16:00:02 -0500 Original-Received: from odoacer.turtle-trading.net ([217.91.34.180] helo=justinian.benny.turtle-trading.net) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1Tx1zc-0000X3-T0; Sun, 20 Jan 2013 21:59:54 +0100 Original-Received: from justinian.benny.turtle-trading.net (localhost [127.0.0.1]) by justinian.benny.turtle-trading.net (8.14.5/8.14.5) with ESMTP id r0KKxkeg032573; Sun, 20 Jan 2013 21:59:46 +0100 Original-Received: (from benny@localhost) by justinian.benny.turtle-trading.net (8.14.5/8.14.5/Submit) id r0KKxjuu032572; Sun, 20 Jan 2013 21:59:45 +0100 In-Reply-To: <83hambpqds.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 20 Jan 2013 22:10:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 217.91.34.180 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156508 Archived-At: 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