pidgin.2.5.6: 9fe90237: *** Plucked rev ecd9624a (sadrul at pidgin....

sadrul at pidgin.im sadrul at pidgin.im
Wed May 13 12:05:39 EDT 2009


-----------------------------------------------------------------
Revision: 9fe90237b75569f21f8de666d690a38109709df0
Ancestor: 5c9341eb71b1f19dcf5551e7da6f0750d8db75c8
Author: sadrul at pidgin.im
Date: 2009-05-13T16:06:23
Branch: im.pidgin.pidgin.2.5.6
URL: http://d.pidgin.im/viewmtn/revision/info/9fe90237b75569f21f8de666d690a38109709df0

Modified files:
        ChangeLog libpurple/protocols/yahoo/yahoo.c

ChangeLog: 

*** Plucked rev ecd9624a (sadrul at pidgin.im):
Preserve utf-8 status messages when going idle.


-------------- next part --------------
============================================================
--- ChangeLog	a18cc858d72040d9f535584842b7c176a6172e4b
+++ ChangeLog	5617bab14f4c7efb01c10167d513c3a5a0e223f2
@@ -26,6 +26,7 @@ version 2.5.6 (??/??/2009):
 
 	Yahoo:
 	* Fix a crash when sending very long messages.
+	* Fix a bug where UTF-8 status messages get garbled when going idle.
 
 version 2.5.5 (03/01/2009):
 	libpurple:
============================================================
--- libpurple/protocols/yahoo/yahoo.c	ec9f4e1f699abde029195f3b2d1da5ec915dbce3
+++ libpurple/protocols/yahoo/yahoo.c	03c184f4f1a7af6b30ab3b17e3ce1522420dec22
@@ -3820,8 +3820,10 @@ static void yahoo_set_idle(PurpleConnect
 			status = purple_presence_get_active_status(purple_account_get_presence(purple_connection_get_account(gc)));
 		tmp = purple_status_get_attr_string(status, "message");
 		if (tmp != NULL) {
-			msg = yahoo_string_encode(gc, tmp, NULL);
+			gboolean utf8 = TRUE;
+			msg = yahoo_string_encode(gc, tmp, &utf8);
 			msg2 = purple_markup_strip_html(msg);
+			yahoo_packet_hash_str(pkt, 97, utf8 ? "1" : 0);
 			yahoo_packet_hash_str(pkt, 19, msg2);
 		} else {
 			/* get_yahoo_status_from_purple_status() returns YAHOO_STATUS_CUSTOM for


More information about the Commits mailing list