From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.bugs Subject: bug#5794: 23.1; UnicodeEncodeError in python-shell Date: Tue, 13 Apr 2010 00:04:58 +0100 Message-ID: <87633w5l2d.fsf@liv.ac.uk> References: <87iq7znp6z.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271116175 12930 80.91.229.12 (12 Apr 2010 23:49:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Apr 2010 23:49:35 +0000 (UTC) Cc: Max Arnold , "5794@debbugs.gnu.org" <5794@debbugs.gnu.org> To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 13 01:49:33 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O1TNe-0005zi-8P for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Apr 2010 01:49:26 +0200 Original-Received: from localhost ([127.0.0.1]:51940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1TNd-0002Ej-KO for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Apr 2010 19:49:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1T3m-0001Vp-61 for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 19:28:54 -0400 Original-Received: from [140.186.70.92] (port=55025 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1T3j-0001Uw-Qp for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 19:28:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1T3h-0007Sd-Ig for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 19:28:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41334) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1T3h-0007SZ-G8 for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 19:28:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O1SkY-0003AT-Cn; Mon, 12 Apr 2010 19:09:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20100329043809.GA5325@bbone> Resent-From: Dave Love Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Apr 2010 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5794 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5794-submit@debbugs.gnu.org id=B5794.127111369012155 (code B ref 5794); Mon, 12 Apr 2010 23:09:02 +0000 Original-Received: (at 5794) by debbugs.gnu.org; 12 Apr 2010 23:08:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1Sjh-0003A0-Ou for submit@debbugs.gnu.org; Mon, 12 Apr 2010 19:08:10 -0400 Original-Received: from mail169.messagelabs.com ([85.158.138.179]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O1Sgi-00038L-HA for 5794@debbugs.gnu.org; Mon, 12 Apr 2010 19:05:05 -0400 X-VirusChecked: Checked X-Env-Sender: D.Love@liverpool.ac.uk X-Msg-Ref: server-8.tower-169.messagelabs.com!1271113499!19277905!1 X-StarScan-Version: 6.2.4; banners=-,-,- X-Originating-IP: [138.253.100.159] Original-Received: (qmail 20295 invoked from network); 12 Apr 2010 23:04:59 -0000 Original-Received: from mxe.liv.ac.uk (HELO mxe.liv.ac.uk) (138.253.100.159) by server-8.tower-169.messagelabs.com with SMTP; 12 Apr 2010 23:04:59 -0000 Original-Received: from mailhubd.liv.ac.uk ([138.253.100.81]) by mxe.liv.ac.uk with esmtp (Exim 4.71) (envelope-from ) id 1O1Sgd-0001Re-DR; Tue, 13 Apr 2010 00:04:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=mailhubd.liv.ac.uk) by mailhubd.liv.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1O1Sgd-0002jx-Bv; Tue, 13 Apr 2010 00:04:59 +0100 Original-Received: from pc102091.liv.ac.uk ([138.253.102.91] helo=albion) by mailhubd.liv.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1O1Sgd-0002ju-8C; Tue, 13 Apr 2010 00:04:59 +0100 Original-Received: from dlove by albion with local (Exim 4.69) (envelope-from ) id 1O1Sgc-0001bK-To; Tue, 13 Apr 2010 00:04:58 +0100 X-Draft-From: ("nnimap+imap.liv.ac.uk:Misc" 6292) X-Plaque: Raised by Men of Liverpool for the Advancement of Learning and the Enoblement of Life User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/21.4 (gnu/linux) X-Mailman-Approved-At: Mon, 12 Apr 2010 19:08:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Apr 2010 19:09:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36226 Archived-At: Chong Yidong writes: > This is due to the following line in `run-python', which I merged from > the upstream python.el on 2008-02-21: > > ;; Suppress use of pager for help output: > (process-connection-type nil)) > > Dave, do you remember what the rationale for this is? (I don't > understand the comment.) It's the most likely way to suppress interactive i/o generally, which is why it should normally be used for inferior interpreters and things like VC, apart from the reasons in the manual to avoid PTYs. > I'm not sure why using a pipe rather than a pty makes a difference, > though. It's certainly odd behaviour, but as you're dropping python.el for python-mode.el, you needn't worry about it. Amongst other things, python-mode.el doesn't have the features that require results from the sub-process.