Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sage CLI crashes on unicode input #2428

Closed
burcin opened this issue Mar 8, 2008 · 1 comment
Closed

Sage CLI crashes on unicode input #2428

burcin opened this issue Mar 8, 2008 · 1 comment

Comments

@burcin
Copy link

burcin commented Mar 8, 2008

The CLI crashes (at least on some platforms) on unicode input.

On Debian etch workstation:

sage: #burçin
WARNING: 
********
You or a %run:ed script called sys.stdin.close() or sys.stdout.close()!
Exiting IPython!

On my Gentoo laptop the example above works, but this doesn't:

sage: for i in range(10):
....:      #burçin
---------------------------------------------------------------------------
<type 'exceptions.UnicodeEncodeError'>    Traceback (most recent call last)

/home/burcin/work/sage/sage-test/local/lib/python2.5/site-packages/IPython/iplib.py in raw_input(self, prompt, continue_prompt)
   2043                         newhist = self.input_hist_raw[-1].rstrip()
   2044                         self.readline.remove_history_item(histlen-1)
-> 2045                         self.readline.replace_history_item(histlen-2,newhist)
   2046                     except AttributeError:
   2047                         pass # re{move,place}_history_item are new in 2.4.                

<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xe7' in position 25: ordinal not in range(128)
....: 

See also comments in ticket:2399 and http://ipython.scipy.org/ipython/ipython/ticket/156

Component: user interface

Keywords: ipython

Issue created by migration from https://trac.sagemath.org/ticket/2428

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 22, 2008

comment:1

This works now due to malb's fix #2593:

----------------------------------------------------------------------
| SAGE Version 2.11.alpha0, Release Date: 2008-03-20                 |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: #burçin
sage:

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Mar 22, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.0, sage-2.11 Mar 24, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants