From edddd072a447a2a8174bae9c4e00607924a9ede3 2007-03-23 00:57:04 From: fperez Date: 2007-03-23 00:57:04 Subject: [PATCH] Fix unicode handling, patch by Stefan. Closes #129 --- diff --git a/IPython/iplib.py b/IPython/iplib.py index ffdfc1c..9aad8c4 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -6,7 +6,7 @@ Requires Python 2.3 or newer. This file contains all the classes and helper functions specific to IPython. -$Id: iplib.py 2135 2007-03-10 09:26:25Z fperez $ +$Id: iplib.py 2168 2007-03-23 00:57:04Z fperez $ """ #***************************************************************************** @@ -1977,7 +1977,7 @@ want to merge them back into the new files.""" % locals() """ try: - line = raw_input_original(prompt) + line = raw_input_original(prompt).decode(sys.stdin.encoding) except ValueError: warn("\n********\nYou or a %run:ed script called sys.stdin.close() or sys.stdout.close()!\nExiting IPython!") self.exit_now = True diff --git a/doc/ChangeLog b/doc/ChangeLog index ee2c492..6b44b58 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2007-03-22 Fernando Perez + + * IPython/iplib.py (raw_input): Fix mishandling of unicode at + input. Patch sent by Stefan. + 2007-03-20 J�rgen Stenarson * IPython/Extensions/ipy_stock_completer.py shlex_split, fix bug in shlex_split. len function