Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2428 closed defect (fixed)

Sage CLI crashes on unicode input

Reported by: burcin Owned by: was
Priority: minor Milestone: sage-2.11
Component: user interface Keywords: ipython
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


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

On Debian etch workstation:

sage: #burçin
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/ 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

Change History (2)

comment:1 Changed 14 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

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



comment:2 Changed 14 years ago by mabshoff

  • Milestone changed from sage-3.0 to sage-2.11
Note: See TracTickets for help on using tickets.