Mercurial > pidgin.yaz
changeset 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 | 2b0f39e264ea |
children | 32e7baa81e03 |
files | COPYRIGHT src/protocols/oscar/oscar.c |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Sat Dec 04 21:30:03 2004 +0000 +++ b/COPYRIGHT Sat Dec 04 21:41:25 2004 +0000 @@ -147,6 +147,7 @@ Alceste Scalas Carsten Schaar Luke Schierer +Ralph Schmieder Evan Schoenberg Torrey Searle Don Seiler
--- a/src/protocols/oscar/oscar.c Sat Dec 04 21:30:03 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sat Dec 04 21:41:25 2004 +0000 @@ -1296,10 +1296,15 @@ g_string_append_len(newmsg, msg, len); } - /* XXX - I imagine Paco-Paco will want to do some voodoo with the encoding here */ - serv_got_im(gc, sn, newmsg->str, imflags, time(NULL)); - - /* free up the message */ + /* Convert to UTF8 */ + /* (This hasn't been tested very much) */ + utf8 = gaim_plugin_oscar_decode_im_part(gc->account, sn, encoding, 0x0000, newmsg->str, len); + if (utf8 != NULL) { + serv_got_im(gc, sn, utf8, imflags, time(NULL)); + g_free(utf8); + } + + /* free the message */ g_string_free(newmsg, TRUE); /* unref any images we allocated */