You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start a terminal support unicode (such as gnome-terminal or mlterm)
start ipython, then run "print unichr(0x9000)", the output in terminal should like:
In [1]: print unichr(0x9000)
退
copy this character ("退") and paste it to ipython again (after "In [2]:"), then press enter, ipython will quit.
change 0x9000 to 0x8fff, ipython will not crash. change 0x9000 to other number bigger than 0x9000, ipython will also crash (I test many number, but not all, :-)
python don't have this bug.
this bug can be reproduce in gnome-terminal and mlterm.
It should be disabled by default in that version. Check c.TerminalInteractiveShell.readline_parse_and_bind in your ipython_config.py file. You might also want to check your .inputrc file, because IPython can use that as well.
I couldn't find "c.TerminalInteractiveShell.readline_parse_and_bind" in all "ipython_config.py" files under "/Library/Python/2.7/site-packages/ipython-0.13.2-py2.7.egg/IPython/config/profile". I don't have ".inputrc" file and other ipython profiles in my home folder. But I still couldn't type Chinese in ipython.
The config files are in ~/.ipython or ~/.config/ipython, but if they're
only made if you explicitly create them ('ipython profile create'), so if
you don't know about them, they're probably not there.
It might be an issue with your terminal. Mac users, can someone offer
advice?
I couldn't find "c.TerminalInteractiveShell.readline_parse_and_bind" in
all "ipython_config.py" files under
"/Library/Python/2.7/site-packages/ipython-0.13.2-py2.7.egg/IPython/config/profile".
I don't have ".inputrc" file and other ipython profiles in my home folder.
But I still couldn't type Chinese in ipython.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-19871830
.
Activity
xiaket commentedon Jun 7, 2010
I can repeat this bug on a linux box running ipython 0.10. Hope someone would fix it.
takluyver commentedon Mar 23, 2011
Interesting. If it helps anyone, the range of characters concerned have the first byte /xe9 in utf-8.
takluyver commentedon Mar 23, 2011
Disable readline \M-i, so characters 0x9000-0x9fff don't crash IPython.
closed by c709d8b
takluyver commentedon Mar 26, 2011
http://bugs.python.org/issue11679
Disable readline \M-i, so characters 0x9000-0x9fff don't crash IPython.
haosdent commentedon Jun 23, 2013
Hi, how could I "Disable readline \M-i", the version of my ipython is 0.13.2
takluyver commentedon Jun 23, 2013
It should be disabled by default in that version. Check
c.TerminalInteractiveShell.readline_parse_and_bindin your ipython_config.py file. You might also want to check your.inputrcfile, because IPython can use that as well.haosdent commentedon Jun 23, 2013
I couldn't find "c.TerminalInteractiveShell.readline_parse_and_bind" in all "ipython_config.py" files under "/Library/Python/2.7/site-packages/ipython-0.13.2-py2.7.egg/IPython/config/profile". I don't have ".inputrc" file and other ipython profiles in my home folder. But I still couldn't type Chinese in ipython.
takluyver commentedon Jun 23, 2013
The config files are in ~/.ipython or ~/.config/ipython, but if they're
only made if you explicitly create them ('ipython profile create'), so if
you don't know about them, they're probably not there.
It might be an issue with your terminal. Mac users, can someone offer
advice?
On 23 June 2013 11:27, haosdent notifications@github.com wrote:
haosdent commentedon Jun 23, 2013
I could type Chinese in termial normally. And I couldn't any profile files in "
/.ipython" folder. In mac, "/.config" isn't exist.haosdent commentedon Jun 23, 2013
Thank you very much. I found that I could solve this by "export LC_ALL="en_US.UTF-8"".
Merge pull request ipython#58 from maxalbert/test_cleanup_and_bugfix
Disable readline \M-i, so characters 0x9000-0x9fff don't crash IPython.