Mercurial > pidgin.yaz
diff libpurple/protocols/msn/msn.c @ 27791:ab1185e87ca5
- more normalization for window title
- apply botch_utf() to outgoing alias name in msn14 protocol
- now botch_utf() and sanitize_utf() accept -1 and NULL as the length of source string and the pointer to length of converted string respectively.
- now botch_ucs() and botch_utf() skip conversion if _WIN32 is defined.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 13 Mar 2008 14:50:21 +0000 |
parents | 9f67f9a58564 |
children | aceb6c9734a4 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Wed Mar 12 19:31:01 2008 +0000 +++ b/libpurple/protocols/msn/msn.c Thu Mar 13 14:50:21 2008 +0000 @@ -154,13 +154,18 @@ MsnSession *session; PurpleAccount *account; const char *alias; + gchar *tmp; + gsize dummy; session = gc->proto_data; cmdproc = session->notification->cmdproc; account = purple_connection_get_account(gc); - if(entry && strlen(entry)) - alias = purple_url_encode(entry); + if(entry && strlen(entry)) { + tmp = botch_utf(entry, strlen(entry), &dummy); + alias = purple_url_encode(tmp); + g_free(tmp); + } else alias = "";