From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: python-shell-send-region uses wrong encoding? Date: Tue, 29 Oct 2013 19:11:45 +0200 Message-ID: <83r4b4dmsu.fsf@gnu.org> References: <20131029113044.GA28039@doriath.local> <58c24be4-f103-4287-a674-dc1eb4ef7331@default> <20131029143716.GA28671@doriath.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1383066722 13413 80.91.229.3 (29 Oct 2013 17:12:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 17:12:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 18:12:06 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VbCpp-00078S-SZ for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 18:12:05 +0100 Original-Received: from localhost ([::1]:48462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCpp-0002zW-BP for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 13:12:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCpa-0002yT-2A for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 13:11:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbCpU-0007VR-LZ for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 13:11:49 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCpU-0007VJ-Dg for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 13:11:44 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MVF00000X2K2W00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 19:11:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVF000V2X3J2710@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 19:11:43 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94252 Archived-At: > Date: Tue, 29 Oct 2013 09:00:08 -0700 (PDT) > From: Drew Adams >=20 > "you need the encoding system in your buffer which contains > the source code to be utf-8 to send two bytes for =F6. However, > if it is a single-byte encoding, and given that you select the > locale that maps the byte F6 to =F6, you will get that byte. >=20 > PS. Make sure you have -*- coding: utf-8 -*- comment." I hope you (and everyone else) understand that the above is profoundl= y wrong. There's no relation whatsoever between the buffer's file encoding and the encoding of the material Emacs sends to an inferior process.