Ticket #88 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

UTF-8 strings

Reported by: nosklo Assigned to:
Priority: critical Keywords: utf8 input
Cc:

Description

When I enter the string x = u"รก" and press enter, the program gives this error message:

/usr/local/lib/python2.6/dist-packages/reinteract/shell_buffer.py:330: GtkWarning: gtk_text_iter_set_line_index: assertion `byte_on_line <= bytes_in_line' failed
  end.set_line_index(end_index)

Then it becomes really unstable. When I type print and a single space on the next line, the program aborts before pressing enter; error on console is:

Gtk-ERROR **: Byte index 7 is off the end of t
aborting...

You can get those errors by many other means, just enter any utf-8 non-ascii char on reinteract.

Using ubuntu 9.04, just compiled reinteract from git repository revision e4b17e8d5e24f4ed374882887dda1710817a7097.

Change History

08/01/09 19:05:37 changed by otaylor

  • status changed from new to closed.
  • resolution set to duplicate.

See ticket 74 (there's a branch in the git repository that has this pretty much fixed.)