##// END OF EJS Templates
unix readline does not accept unicode in history, encode to str. Patch by Tiago, close #201
vivainio -
Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.'
6 6
7 7 This file contains all the classes and helper functions specific to IPython.
8 8
9 $Id: iplib.py 2891 2007-12-12 22:33:50Z vivainio $
9 $Id: iplib.py 2894 2007-12-13 20:34:23Z vivainio $
10 10 """
11 11
12 12 #*****************************************************************************
@@ -2075,7 +2075,8 b' want to merge them back into the new files.""" % locals()'
2075 2075 histlen = self.readline.get_current_history_length()
2076 2076 newhist = self.input_hist_raw[-1].rstrip()
2077 2077 self.readline.remove_history_item(histlen-1)
2078 self.readline.replace_history_item(histlen-2,newhist)
2078 self.readline.replace_history_item(histlen-2,
2079 newhist.encode(self.stdin_encoding))
2079 2080 except AttributeError:
2080 2081 pass # re{move,place}_history_item are new in 2.4.
2081 2082 else:
@@ -1,13 +1,14 b''
1 2007-12-13 Ville Vainio <vivainio@gmail.com>
2
3 * iplib.py(raw_input): unix readline does not allow unicode in
4 history, encode to normal string. After patch by Tiago.
5 Close #201
6
1 7 2007-12-12 Ville Vainio <vivainio@gmail.com>
2 8
3 * genutils.py (abbrev_cwd): Terminal title now shows 2 levels of current
4 directory.
9 * genutils.py (abbrev_cwd): Terminal title now shows 2 levels of
10 current directory.
5 11
6 * iplib.py: We now set system default encoding to sys.stdin.encoding with
7 sys.setdefaultencoding, after a patch by 'pan'. This makes str() calls that
8 IPython still has implicitly work. This should be removed when such calls
9 are cleaned.
10
11 12 2007-12-12 Fernando Perez <Fernando.Perez@colorado.edu>
12 13
13 14 * IPython/Shell.py (_select_shell): add support for controlling
General Comments 0
You need to be logged in to leave comments. Login now