# HG changeset patch # User Sadrul Habib Chowdhury # Date 1242230485 0 # Node ID f47f6f6ba4394ba8c525b706053ae050c6f4a086 # Parent 92565c8e1e3a32ab2ac5fdd6781586a88b9d4c57 Preserve utf-8 status messages when going idle. diff -r 92565c8e1e3a -r f47f6f6ba439 libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Tue May 12 05:49:34 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Wed May 13 16:01:25 2009 +0000 @@ -4753,8 +4753,10 @@ 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