[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
Tue Aug 3 15:52:11 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28747

--- Comment #7 from Will Thompson <will.thompson at collabora.co.uk> 2010-08-03 06:52:11 PDT ---
(In reply to comment #5)
> (In reply to comment #4)
> > 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?
> 
> I thought that so, but also looked what the D-Bus signature means, and the
> first letter "s" means "String" type, so I thought that maybe changing it to
> "u" (Unicode type) will do the trick.

No... 's' is the D-Bus signature for a UTF-8 string. 'u' is a unsigned 32-bit
integer. See the table in
http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-signatures

-- 
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