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 21:10:55 +0200 Message-ID: <83k3gvevuo.fsf@gnu.org> References: <20131029113044.GA28039@doriath.local> <526FC58A.6080204@easy-emacs.de> <20131029145554.GB28671@doriath.local> <20131029163426.GA29055@doriath.local> <83ppqodmnc.fsf@gnu.org> <20131029175303.GA29272@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 1383073887 6915 80.91.229.3 (29 Oct 2013 19:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 19:11:27 +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 20:11:31 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 1VbEhO-0000n3-Ia for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 20:11:30 +0100 Original-Received: from localhost ([::1]:48944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbEhO-0003Tg-3N for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 15:11:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbEgx-0003Hk-PQ for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 15:11:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbEgq-0007Rt-F8 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 15:11:03 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:58431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbEgp-0007RK-0z for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 15:10:56 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MVG001002I9WV00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 21:10:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVG0013O2M5M5A0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 21:10:53 +0200 (IST) In-reply-to: <20131029175303.GA29272@doriath.local> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:94258 Archived-At: > Date: Tue, 29 Oct 2013 18:53:03 +0100 > From: Ernest Adrogu=E9 >=20 > I would expect python-shell-send-region to be a shortcut for saving= the > region, switching to the shell buffer, yanking and hitting RET. Emacs can send stuff to an inferior program directly, without going through a file. But even if going through a file, why is it wrong to send 2 bytes whe= n a character's UTF-8 encoding takes those same 2 bytes?