# HG changeset patch # User Mark Doliner # Date 1052179501 0 # Node ID d846a933299c232215b93da869ba8f3b2713199e # Parent 5344eb60f421db922cd0f351b10f5b6dff96d4fd [gaim-migrate @ 5673] pur-angst pointed out that info gets set when you sign on, and it doesn't correctly check the unicode length thing. This mostly fixes that. Now your info will get set correctly. However if it is too long you will get 2 error messages saying Gaim has truncated it. This is better than nothing, for now, I think. committer: Tailor Script diff -r 5344eb60f421 -r d846a933299c src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Mon May 05 23:30:42 2003 +0000 +++ b/src/protocols/oscar/oscar.c Tue May 06 00:05:01 2003 +0000 @@ -3753,20 +3753,8 @@ if (od->icq) aim_bos_setprofile(sess, fr->conn, NULL, NULL, 0, NULL, NULL, 0, caps_icq); - else { - flags = oscar_encoding_check (gc->account->user_info); - - if (flags == 0) { - aim_bos_setprofile(sess, fr->conn, "us-ascii", gc->account->user_info, - strlen(gc->account->user_info), NULL, NULL, 0, caps_aim); - } else { - unicode = g_convert (gc->account->user_info, strlen(gc->account->user_info), - "UCS-2BE", "UTF-8", NULL, &unicode_len, NULL); - aim_bos_setprofile(sess, fr->conn, "unicode-2-0", unicode, unicode_len, - NULL, NULL, 0, caps_aim); - g_free(unicode); - } - } + else + oscar_set_info(gc, gc->account->user_info); return 1; }