[Telepathy-commits] [telepathy-butterfly/master] Encode the user alias as UTF-8 when setting a new display name.
Jonny Lamb
jonny.lamb at collabora.co.uk
Sun Dec 28 06:48:32 PST 2008
"It seems that indeed the encode method was missing as it was applied to
alias for classic contact aliases."
Thanks to Aurélien Bauchet <baucheta at gmail.com> for the patch.
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
butterfly/aliasing.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/butterfly/aliasing.py b/butterfly/aliasing.py
index b717e0e..c6d1c29 100644
--- a/butterfly/aliasing.py
+++ b/butterfly/aliasing.py
@@ -71,7 +71,7 @@ class ButterflyAliasing(
self.msn_client.address_book.\
update_contact_infos(contact, infos)
else:
- self.msn_client.profile.display_name = alias
+ self.msn_client.profile.display_name = alias.encode('utf-8')
logger.info("Self alias changed to '%s'" % alias)
self.AliasesChanged(((ButterflyHandleFactory(self, 'self'), alias), ))
--
1.5.6.5
More information about the Telepathy-commits
mailing list