[Pidgin] #12733: MSN public-alias length patch

Pidgin trac at pidgin.im
Mon Oct 11 03:45:16 EDT 2010


#12733: MSN public-alias length patch
---------------------+------------------------------------------------------
 Reporter:  palatis  |     Owner:  QuLogic
     Type:  patch    |    Status:  new    
Component:  MSN      |   Version:  2.7.3  
 Keywords:           |  
---------------------+------------------------------------------------------
 The current MSN protocol implementation uses purple_url_encode() to encode
 the public alias in msn_set_public_alias(). However, purple_url_encode()
 is mostly based on RFC 1738, which tries to escape each bytes in a valid
 multi-byte utf8 character, makes the available maximum length for a public
 alias much shorter when the alias contains mostly (or all) multi-byte utf8
 characters. for example, "中文暱稱" which is only 12 bytes would be encoded
 into "%E4%B8%AD%E6%96%87%E6%9A%B1%E7%A8%B1" which is 36 bytes in length.

 The official Windows Live Messenger (v2009 build 14.0.8117.416) allows raw
 utf8 characters to be directly included in msn commands.

 The attached file is a patch to enable this with pidgin 2.7.3. It tries to
 use a RFC 3986 compatible encode function to encode the alias.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/12733>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list