[Bug 28747] [telepathy-butterfly 0.5.11-1~ppa10.04+1] telepathy-butterfly crashed with UnicodeDecodeError in _signal_text_received()
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 26 12:54:10 CEST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=28747
--- Comment #4 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-07-26 03:54:09 PDT ---
(In reply to comment #3)
> I think that the problem is in the signature
> of the dbus dictionaries (sv)
That's not it; the signatures are defined by D-Bus, not Python, and a D-Bus
string is always UTF-8. dbus.String is a subclass of Python's unicode data
type.
> if sender_nick not in (None, ''):
> headers[dbus.String('sender-nickname')] = dbus.String(sender_nick)
Based on what you said, the problem is probably that dbus.String(sender_nick)
is basically the same as unicode(sender_nick), which will fail if sender_nick
is non-ASCII. Butterfly should be using sender_nick.decode('SOME-ENCODING')
where SOME-ENCODING is whatever the protocol uses - hopefully UTF-8?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list