[IPython-dev] Fwd: [IPython-User] Cannot background system commands in IPython 0.11rc1, Win 7

Thomas Kluyver takowl at gmail.com
Wed Jul 27 08:55:20 EDT 2011


Oops, we dropped off list. I'm sending to the dev list rather than the user
list, because this is getting rather technical.

Summary of what's been said:
- Config docs need to be updated, because they still refer to
IPython.config.default.ipython_config, which is gone (the equivalent is
automatically generated)
- Using the Qt console on Windows, you don't see the warning message about
old IPython config files. This might be due to issue 617.
- Some character encoding issues when using pythonw.exe for the Qt console.
When sys.stdin.encoding is None, we might want to fall back to "mbcs" on
Windows before going for ascii.

Thomas

---------- Forwarded message ----------
From: Thomas Kluyver <takowl at gmail.com>
Date: 27 July 2011 13:50
Subject: Re: [IPython-User] Cannot background system commands in IPython
0.11rc1, Win 7
To: Jon Olav Vik <jonovik at gmail.com>


On 27 July 2011 13:31, Jon Olav Vik <jonovik at gmail.com> wrote:

> > Character encoding issues again... So do these only appear when you're
> using
> > pythonw, or do you see them when you start it with python (and leave it
> with
> > system_piped) as well?
>
> Only with pythonw:
> pythonw -m ipython qtconsole


OK, I think the reason for this is that pythonw presumably creates an
environment where sys.stdin is a dummy object, and sys.stdin.encoding is
None. So we fall back to ascii, and the thousands separator, which I guess
is a non-breaking space and therefore not part of ascii, gets decoded as the
replacement symbol (�).*

*I think that we can fall back to "mbcs" as an encoding before ascii on
Windows. From what I can tell, mbcs should correspond to the active code
page on the system, so it should decode the output correctly. The docs are a
bit brief, however.

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110727/188fb09b/attachment.html>


More information about the IPython-dev mailing list