Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 10318:fcadde998ba9
[gaim-migrate @ 11520]
Hopefully decode non-ascii direct IM messages.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 04 Dec 2004 21:41:25 +0000 |
parents | 361c9170d8af |
children | 0ad82da3ffcf |
comparison
equal
deleted
inserted
replaced
10317:2b0f39e264ea | 10318:fcadde998ba9 |
---|---|
1294 imflags |= GAIM_CONV_IM_IMAGES; | 1294 imflags |= GAIM_CONV_IM_IMAGES; |
1295 } else { | 1295 } else { |
1296 g_string_append_len(newmsg, msg, len); | 1296 g_string_append_len(newmsg, msg, len); |
1297 } | 1297 } |
1298 | 1298 |
1299 /* XXX - I imagine Paco-Paco will want to do some voodoo with the encoding here */ | 1299 /* Convert to UTF8 */ |
1300 serv_got_im(gc, sn, newmsg->str, imflags, time(NULL)); | 1300 /* (This hasn't been tested very much) */ |
1301 | 1301 utf8 = gaim_plugin_oscar_decode_im_part(gc->account, sn, encoding, 0x0000, newmsg->str, len); |
1302 /* free up the message */ | 1302 if (utf8 != NULL) { |
1303 serv_got_im(gc, sn, utf8, imflags, time(NULL)); | |
1304 g_free(utf8); | |
1305 } | |
1306 | |
1307 /* free the message */ | |
1303 g_string_free(newmsg, TRUE); | 1308 g_string_free(newmsg, TRUE); |
1304 | 1309 |
1305 /* unref any images we allocated */ | 1310 /* unref any images we allocated */ |
1306 if (images) { | 1311 if (images) { |
1307 GSList *tmp; | 1312 GSList *tmp; |