apertium-tolk gets stuck when a non-ASCII character is typed in

Bug #320101 reported by Mikel L. Forcada
6
Affects Status Importance Assigned to Milestone
Apertium
In Progress
Undecided
Unassigned
apertium-dbus (Debian)
Fix Released
Unknown
apertium-dbus (Ubuntu)
Confirmed
Undecided
Apertium

Bug Description

Binary package hint: apertium-tolk

The bug is maybe related to apertium-dbus, and ultimately to the limitations of character handling in python.
Apertium-tolk in Ubuntu 8.01 launches nicely but whenever one types in a non-ASCII character it produces an error. This is the error produced when one types "ç" (c with cedilla) as in:

comme ci comme ça

org.freedesktop.DBus.Python.UnicodeEncodeError: Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/service.py", line 696, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/apertium/dbus-1/mode.py", line 61, in translate
    return translate.translate(self.mode, options, text)
  File "/usr/share/apertium/dbus-1/mode.py", line 46, in translate
    out, err = call(add_options([self.cmd, pair], options), text)
  File "/usr/share/apertium/dbus-1/command_line.py", line 13, in call
    child_in.write(_in)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 26: ordinal not in range(128)

Revision history for this message
Jimmy O'Regan (jimregan) wrote :

Reassign to apertium-dbus

affects: apertium-tolk (Ubuntu) → apertium-dbus (Ubuntu)
Changed in apertium-dbus (Ubuntu):
status: New → Confirmed
Jimmy O'Regan (jimregan)
Changed in apertium:
status: New → In Progress
Jimmy O'Regan (jimregan)
Changed in apertium-dbus (Ubuntu):
assignee: nobody → Apertium (apertium)
Changed in apertium-dbus (Debian):
status: Unknown → New
Changed in apertium-dbus (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.