changeset 27801:f8b47fd39f53

backport alias normalization to manp9
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 17 Mar 2008 07:07:05 +0000
parents 85d5b6c06a6c
children 4d8e1c17b3f9
files libpurple/protocols/msnp9/msn.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/msn.c	Mon Mar 17 06:32:52 2008 +0000
+++ b/libpurple/protocols/msnp9/msn.c	Mon Mar 17 07:07:05 2008 +0000
@@ -155,13 +155,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 = "";