# HG changeset patch # User Daniel Atallah # Date 1157508495 0 # Node ID 4e004a2994c248e77a862001a1f3c3a75d859176 # Parent cdc4ef325a23c25351cd3256e5dde10c637bdc6f [gaim-migrate @ 17173] Fix Bug #153721 - Crash caused by non-UTF8 text passed to g_markup_escape_text(). I suspect there may be elsewhere in the gg prpl that suffers from the same problem, but I don't want to be willy-nilly running utf8 validation everyere. committer: Tailor Script diff -r cdc4ef325a23 -r 4e004a2994c2 libgaim/protocols/gg/gg.c --- a/libgaim/protocols/gg/gg.c Wed Sep 06 00:46:00 2006 +0000 +++ b/libgaim/protocols/gg/gg.c Wed Sep 06 02:08:15 2006 +0000 @@ -1547,7 +1547,7 @@ return text; } else { - tmp = g_strdup(gaim_status_get_name(status)); + tmp = gaim_utf8_salvage(gaim_status_get_name(status)); text = g_markup_escape_text(tmp, -1); g_free(tmp);