The proposed patch does not work for me on win32 with or without pyreadline
sys.stdin.encoding == "cp1252"
Standard python:
c:\python>python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> "åäö"
'\xe5\xe4\xf6'
>>> u"åäö"
u'\xe5\xe4\xf6'
>>>
IPython from trunk:
c:\python>ipython
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: "åäö"
Out[1]: '\xe5\xe4\xf6'
In [2]: u"åäö"
Out[2]: u'\xe5\xe4\xf6'
In [3]:
Do you really want to exit ([y]/n)?
IPython with proposed change:
c:\python>ipython
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
The proposed patch does not work for me on win32 with or without pyreadline
sys.stdin.encoding == "cp1252"
Standard python:
c:\python>python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> "åäö"
'\xe5\xe4\xf6'
>>> u"åäö"
u'\xe5\xe4\xf6'
>>>
IPython from trunk:
c:\python>ipython
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: "åäö"
Out[1]: '\xe5\xe4\xf6'
In [2]: u"åäö"
Out[2]: u'\xe5\xe4\xf6'
In [3]:
Do you really want to exit ([y]/n)?
IPython with proposed change:
c:\python>ipython
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: "åäö" xc3\xa4\ xc3\xb6'
Out[1]: '\xc3\xa5\
In [2]: u"åäö"
Out[2]: u'\xe5\xe4\xf6'
In [3]:
Do you really want to exit ([y]/n)?