all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Max Arnold <lwarxx@gmail.com>
Cc: 5794@debbugs.gnu.org
Subject: bug#5794: 23.1; UnicodeEncodeError in python-shell
Date: Tue, 24 Aug 2010 16:22:41 -0400	[thread overview]
Message-ID: <874oejbw1a.fsf@stupidchicken.com> (raw)
In-Reply-To: <20100329043809.GA5325@bbone>

>>> 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.





      parent reply	other threads:[~2010-08-24 20:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29  4:38 bug#5794: 23.1; UnicodeEncodeError in python-shell Max Arnold
2010-04-10 18:21 ` Chong Yidong
2010-04-11  2:47   ` Max Arnold
2010-04-12 23:04 ` Dave Love
2010-04-12 23:08 ` Dave Love
2010-08-24 20:22 ` Chong Yidong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874oejbw1a.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=5794@debbugs.gnu.org \
    --cc=lwarxx@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.