GNU bug report logs - #5794
23.1; UnicodeEncodeError in python-shell

Previous Next

Package: emacs;

Reported by: Max Arnold <lwarxx <at> gmail.com>

Date: Mon, 29 Mar 2010 05:01:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 5794 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Max Arnold <lwarxx <at> gmail.com>
Cc: 5794 <at> debbugs.gnu.org
Subject: Re: 23.1; UnicodeEncodeError in python-shell
Date: Tue, 24 Aug 2010 16:22:41 -0400
>>> 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.




This bug report was last modified 14 years and 336 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.