From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5794: 23.1; UnicodeEncodeError in python-shell Date: Tue, 24 Aug 2010 16:22:41 -0400 Message-ID: <874oejbw1a.fsf@stupidchicken.com> References: <20100329043809.GA5325@bbone> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282682400 28142 80.91.229.12 (24 Aug 2010 20:40:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 20:40:00 +0000 (UTC) Cc: 5794@debbugs.gnu.org To: Max Arnold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 24 22:39:57 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 1Oo0Hi-0000HC-EG for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Aug 2010 22:39:56 +0200 Original-Received: from localhost ([127.0.0.1]:48631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oo0Hg-0006gR-DD for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Aug 2010 16:39:52 -0400 Original-Received: from [140.186.70.92] (port=49989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oo0HF-0006TT-0U for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2010 16:39:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oo0HB-0006Lt-Q3 for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2010 16:39:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48922) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oo0HB-0006Ll-O7 for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2010 16:39:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oo00Q-0006vS-Hn; Tue, 24 Aug 2010 16:22:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20100329043809.GA5325@bbone> Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Aug 2010 20:22: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.128268128326594 (code B ref 5794); Tue, 24 Aug 2010 20:22:02 +0000 Original-Received: (at 5794) by debbugs.gnu.org; 24 Aug 2010 20:21:23 +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 1Onzzn-0006ut-C8 for submit@debbugs.gnu.org; Tue, 24 Aug 2010 16:21:23 -0400 Original-Received: from pantheon-po15.its.yale.edu ([130.132.50.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onzzl-0006ul-Qy for 5794@debbugs.gnu.org; Tue, 24 Aug 2010 16:21:22 -0400 Original-Received: from furry (dhcp128036014154.central.yale.edu [128.36.14.154]) (authenticated bits=0) by pantheon-po15.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7OKMg9c009346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 24 Aug 2010 16:22:42 -0400 Original-Received: by furry (Postfix, from userid 1000) id 613F4C013; Tue, 24 Aug 2010 16:22:41 -0400 (EDT) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 24 Aug 2010 16:22: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:39730 Archived-At: >>> When python shell invoked via C-c C-c, its stdout encoding is set to >>> None and unicode characters can not be printed. > >> This is due to the following line in `run-python' >> (process-connection-type nil)) >> I'm not sure why using a pipe rather than a pty makes a difference, >> though. > > This is probably for python builtin help() function, which can use > pager to scroll documentation page by page. When help() detects that > terminal is a pipe, it disables interactive scrolling and just prints > full output as is. I've changed python.el in the trunk to use a pty; this should remove the problem.