Bug 24223 - Unable to login into msn, unicode conversion error
Summary: Unable to login into msn, unicode conversion error
Status: RESOLVED FIXED
Alias: None
Product: papyon
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Louis-Francis Ratté-Boulianne
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 09:56 UTC by Joao Pinto
Modified: 2009-09-30 12:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.