[Pidgin] #3295: Display full name and update nickname support for Yahoo! JAPAN Messenger.

Pidgin trac at pidgin.im
Wed Jan 16 11:52:43 EST 2008


#3295: Display full name and update nickname support for Yahoo! JAPAN Messenger.
---------------------+------------------------------------------------------
  Reporter:  viz     |       Owner:  rekkanoryo 
      Type:  patch   |      Status:  closed     
  Priority:  minor   |   Milestone:  2.3.2      
 Component:  Yahoo!  |     Version:  2.1.1      
Resolution:  fixed   |    Keywords:  yahoo japan
   Pending:  0       |  
---------------------+------------------------------------------------------
Comment (by rekkanoryo):

 If you change (in yahoo_aliases.c)
 {{{
 #!c
 #define YAHOOJP_ALIAS_FETCH_URL
 "http://address.yahoo.co.jp/yab/jp?v=XM&prog=ymsgr&.intl=jp&diffs=1&t=0&tags=short&rt=0
 &prog-ver=7.0.0.7"
 #define YAHOOJP_ALIAS_UPDATE_URL
 http://address.yahoo.co.jp/yab/jp?v=XM&prog=ymsgr&.intl=jp&sync=1&tags=short&noclear=1"
 }}}

 to
 {{{
 #!c
 #define YAHOOJP_ALIAS_FETCH_URL
 "http://address.yahoo.co.jp/yab/jp?v=XM&prog=ymsgr&.intl=jp&diffs=1&t=0&tags=short&rt=0
 &prog-ver=8.1.0.249&useutf8=1&legenc=codepage-1252"
 #define YAHOO_JP_ALIAS_UPDATE_URL
 "http://address.yahoo.co.jp/yab/jp?v=XM&prog=ymsgr&.intl=jp&sync=1&tags=short&noclear=1&useutf8=1"
 }}}

 and then change
 {{{
 #!c
     if (yd->jp) {
         alias_jp = g_convert(alias, strlen(alias), "EUC-JP", "UTF-8",
 NULL, NULL, NULL);
         content = g_strdup_printf("<ab k=\"%s\" cc=\"1\">\n"
                                   "<ct e=\"1\"  yi='%s' id='%s' nn='%s'
 pr='0' />\n</ab>\r\n",
                                   gc->account->username, who, yu->id,
                                   g_markup_escape_text(alias_jp,
 strlen(alias_jp)));
         g_free(alias_jp);
     }
 }}}

 to
 {{{
 #!c
     if (yd->jp) {
         content = g_strdup_printf("<?xml version=\"1.0\"
 encoding=\"utf-8\"?><ab k=\"%s\" cc=\"1\">\n"
                                   "<ct e=\"1\"  yi='%s' id='%s' nn='%s'
 pr='0' />\n</ab>\r\n",
                                   gc->account->username, who, yu->id,
                                   g_markup_escape_text(alias,
 strlen(alias)));
     }
 }}}

 does it change anything?  If this works, then we can kill all the Yahoo
 Japan specific stuff except the URL assignments.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/3295#comment:9>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list