pidgin: ecd9624a: Preserve utf-8 status messages when goin...
sadrul at pidgin.im
sadrul at pidgin.im
Wed May 13 12:05:40 EDT 2009
-----------------------------------------------------------------
Revision: ecd9624a7b67f4d8e8520d0a6343675b59b2c1ab
Ancestor: c7f905eba9a02b5b1d29807b92097e77e3187ede
Author: sadrul at pidgin.im
Date: 2009-05-13T16:01:25
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ecd9624a7b67f4d8e8520d0a6343675b59b2c1ab
Modified files:
libpurple/protocols/yahoo/yahoo.c
ChangeLog:
Preserve utf-8 status messages when going idle.
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c 0246ab1b4d07cf6ac05016eed7d45fd8c4bcb079
+++ libpurple/protocols/yahoo/yahoo.c dd2772e4383abd59d1dabb63546ea49101e9e7b2
@@ -4753,8 +4753,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