diff libpurple/protocols/oscar/oscar.c @ 27932:4033fea1709c

- oscar.c: encoding while odc should always be utf8. - server.c: fixed a bug that inverted logic in alias renewal.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 03 Mar 2009 08:03:11 +0000
parents d8e6a2d592a4
children f44832c6a65b
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Tue Mar 03 06:57:02 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Tue Mar 03 08:03:11 2009 +0000
@@ -4450,14 +4450,9 @@
 
 	g_string_append(msg, "</BODY></HTML>");
 
-	/* iChat and AIM6 use 0x000d to send UTF8. moreover, AIM6 persists only to UTF8! --yaz */
+	/* iChat and AIM6 use 0x000d to send UTF8.
+       moreover, AIM6 persists only to UTF8! --yaz */
 	charset = AIM_CHARSET_QUIRKUTF8;
-	/* Convert the message to a good encoding */
-	purple_plugin_oscar_convert_to_best_encoding(conn->od->gc,
-			conn->bn, msg->str, &tmp, &tmplen, &charset, &charsubset);
-	g_string_free(msg, TRUE);
-	msg = g_string_new_len(tmp, tmplen);
-	g_free(tmp);
 
 	/* Append any binary data that we may have */
 	if (oscar_id) {