[IPython-user] Testers requested - 0.7.4.rc1, with async cross-thread exceptions

Fernando Perez fperez.net@gmail....
Sat Apr 7 16:25:21 CDT 2007


On 4/7/07, Stefan van der Walt <stefan@sun.ac.za> wrote:
> On Sat, Apr 07, 2007 at 02:18:43PM +0200, Nicolas Pernetty wrote:
> > 3) This line in iplib.py (line 1983) :
> > line = raw_input_original(prompt).decode(sys.stdin.encoding)
> > is breaking IPython in Xemacs on Windows XP because there is no
> > sys.stdin.encoding :
> > In [1]: import sys
> > In [2]: print sys.stdin.encoding
> > None
>
> That should be
>
> line = raw_input_original(prompt).decode(sys.stdin.encoding or 'ascii')

Why default to 'ascii' rather than 'UTF-8'?  I'm honestly asking:
while I've picked up a bit about Unicode recently, I'm not really sure
on what safe defaults for cases like this would be...

Cheers,

f


More information about the IPython-user mailing list