pidgin/gtkdebug.c

changeset 33091
57771e51f8ca
parent 32913
af2c726febce
child 33092
a68f8b2b6873
equal deleted inserted replaced
33090:99d719d058df 33091:57771e51f8ca
1163 if (category == NULL) 1163 if (category == NULL)
1164 cat_s = g_strdup(""); 1164 cat_s = g_strdup("");
1165 else 1165 else
1166 cat_s = g_strdup_printf("<b>%s:</b> ", category); 1166 cat_s = g_strdup_printf("<b>%s:</b> ", category);
1167 1167
1168 esc_s = g_markup_escape_text(arg_s, -1); 1168 tmp = purple_utf8_try_convert(arg_s);
1169 esc_s = g_markup_escape_text(tmp, -1);
1169 1170
1170 s = g_strdup_printf("<font color=\"%s\">%s%s%s</font>", 1171 s = g_strdup_printf("<font color=\"%s\">%s%s%s</font>",
1171 debug_fg_colors[level], ts_s, cat_s, esc_s); 1172 debug_fg_colors[level], ts_s, cat_s, esc_s);
1172 1173
1173 g_free(ts_s); 1174 g_free(ts_s);
1174 g_free(cat_s); 1175 g_free(cat_s);
1175 g_free(esc_s); 1176 g_free(esc_s);
1176 1177 g_free(tmp);
1177 tmp = purple_utf8_try_convert(s);
1178 g_free(s);
1179 s = tmp;
1180 1178
1181 if (level == PURPLE_DEBUG_FATAL) { 1179 if (level == PURPLE_DEBUG_FATAL) {
1182 tmp = g_strdup_printf("<b>%s</b>", s); 1180 tmp = g_strdup_printf("<b>%s</b>", s);
1183 g_free(s); 1181 g_free(s);
1184 s = tmp; 1182 s = tmp;

mercurial