Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.c @ 27768:969a2aeae461
propagate from branch 'im.pidgin.pidgin' (head b7875f81b48bb1a776ac4b2473cc7376cb35b0f9)
to branch 'im.pidgin.pidgin.yaz' (head e22890a44520ea1129da935f8ce82ea795081201)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 27 Feb 2008 12:21:29 +0000 |
parents | dc47e908965f e9cf897bd873 |
children | 0f3a131d23da |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Wed Feb 27 09:18:06 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Wed Feb 27 12:21:29 2008 +0000 @@ -374,8 +374,8 @@ void jabber_send(JabberStream *js, xmlnode *packet) { - char *txt; - int len; + char *txt, *utf; + int len, utflen; purple_signal_emit(my_protocol, "jabber-sending-xmlnode", js->gc, &packet); @@ -384,8 +384,9 @@ return; txt = xmlnode_to_str(packet, &len); - jabber_send_raw(js, txt, len); - g_free(txt); + utf = botch_utf(txt, len, &utflen); //yaz + jabber_send_raw(js, utf, utflen); + g_free(txt); g_free(utf); } static void jabber_pong_cb(JabberStream *js, xmlnode *packet, gpointer timeout)