# HG changeset patch # User Richard Laager # Date 1141762295 0 # Node ID 1b5bf4b215f0aef036cc40fcdac98a786d7a2287 # Parent efd3f93a220f7d22606c2693133ea7eb40171200 [gaim-migrate @ 15829] A patch from Bartosz Oler Fixes SF Bug #1440898 This patch fixes the handling of markup in GG status text. committer: Tailor Script diff -r efd3f93a220f -r 1b5bf4b215f0 src/protocols/gg/gg.c --- a/src/protocols/gg/gg.c Tue Mar 07 14:43:00 2006 +0000 +++ b/src/protocols/gg/gg.c Tue Mar 07 20:11:35 2006 +0000 @@ -1395,13 +1395,9 @@ name = gaim_status_get_name(status); if (msg != NULL) { - char *tmp = gaim_markup_strip_html(msg); - text = g_markup_escape_text(tmp, -1); - g_free(tmp); - + text = g_markup_escape_text(msg, -1); g_string_append_printf(str, "\n%s: %s: %s", _("Status"), name, text); - g_free(text); } else { g_string_append_printf(str, "\n%s: %s", @@ -1669,14 +1665,12 @@ } else { gchar *tmp, *new_msg; - tmp = gaim_markup_strip_html(msg); - new_msg = g_markup_escape_text(tmp, -1); + tmp = charset_convert(msg, "UTF-8", "CP1250"); + new_msg = gaim_markup_strip_html(tmp); g_free(tmp); - tmp = charset_convert(new_msg, "UTF-8", "CP1250"); - gg_change_status_descr(info->session, new_status_descr, tmp); + gg_change_status_descr(info->session, new_status_descr, new_msg); g_free(new_msg); - g_free(tmp); } } /* }}} */