From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Typing raw bytes Date: Mon, 21 Jan 2013 05:50:31 +0200 Message-ID: <837gn7p52w.fsf@gnu.org> References: <87y5fnmod2.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1358740222 16537 80.91.229.3 (21 Jan 2013 03:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 03:50:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 21 04:50: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 1Tx8PA-000828-L2 for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2013 04:50:40 +0100 Original-Received: from localhost ([::1]:49897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx8Ot-0003B9-HA for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2013 22:50:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx8Oq-0003Aw-OT for emacs-devel@gnu.org; Sun, 20 Jan 2013 22:50:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tx8Op-0006W0-3v for emacs-devel@gnu.org; Sun, 20 Jan 2013 22:50:20 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx8Oo-0006VR-SL; Sun, 20 Jan 2013 22:50:19 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MGY00G00IJIC300@a-mtaout22.012.net.il>; Mon, 21 Jan 2013 05:50:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGY00FFUINTYS50@a-mtaout22.012.net.il>; Mon, 21 Jan 2013 05:50:17 +0200 (IST) In-reply-to: <87y5fnmod2.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:156529 Archived-At: > From: Kenichi Handa > Cc: emacs-devel@gnu.org > Date: Mon, 21 Jan 2013 08:22:17 +0900 > > In article <83hambpqds.fsf@gnu.org>, Eli Zaretskii 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. And it still didn't work for me, at least not on Windows. Does it work for you in a TTY session on Unix?