Bug 24223

Summary: Unable to login into msn, unicode conversion error
Product: papyon Reporter: Joao Pinto <joao.pinto>
Component: generalAssignee: Louis-Francis Ratté-Boulianne <lfrb>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Joao Pinto 2009-09-30 09:56:35 UTC
Here is the tracbeack from butterfly (using :papyon-0.4.2)

DEBUG:papyon.transport:<<< USR 6 OK lamego_ptlink@hotmail.com 1 0
DEBUG:papyon.transport:<<< SBS 0 null
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/papyon/transport.py", line 337, in __on_received
    logger.debug('<<< ' + unicode(cmd))
  File "/usr/lib/pymodules/python2.6/papyon/msnp/command.py", line 222, in __unicode__
    return unicode(CommandPrinter(self))
  File "/usr/lib/pymodules/python2.6/papyon/msnp/command.py", line 36, in __unicode__
    return printer()
  File "/usr/lib/pymodules/python2.6/papyon/msnp/command.py", line 60, in _print_MSG
    result += payload
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 213: ordinal not in range(128)

The problem seems to be related to my nickname:
Nickname: João
Comment 1 Olivier Le Thanh Duong 2009-09-30 12:49:26 UTC
This was caused by our reimplementation of repr in msn.Message leaving some unicode cha.
Branch to fix this
http://git.collabora.co.uk/?p=user/olethanh/papyon.git;a=shortlog;h=refs/heads/fix_24223
Comment 2 Olivier Le Thanh Duong 2009-09-30 12:54:09 UTC
Branch Merged

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.