diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2013-05-06 16:13:49 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2013-05-06 16:13:49 +0100 |
commit | af496d8e85185e99d3b8f9251508a401d2831c06 (patch) | |
tree | c15c82b362d281af95ff58c42c5966be83734fdb | |
parent | f539d6ecaa67f154839669ed6d2a7fe9d24e4ab8 (diff) |
Use UCS-2BE instead of UNICODEBIG as the UTF16 charset used by the OSCAR
module. Might improve compatibility with non-glibc iconv libs.
-rw-r--r-- | protocols/oscar/oscar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index 05be086d..021792b3 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -980,7 +980,7 @@ static int incomingim_chan1(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_ char *src; if (args->icbmflags & AIM_IMFLAGS_UNICODE) - src = "UNICODEBIG"; + src = "UCS-2BE"; else src = "ISO8859-1"; @@ -1768,7 +1768,7 @@ static int oscar_buddy_msg(struct im_connection *ic, char *name, char *message, if ((ret = do_iconv("UTF-8", "ISO8859-1", message, s, len, BUF_LONG)) >= 0) { args.flags |= AIM_IMFLAGS_ISO_8859_1; len = ret; - } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) { + } else if ((ret = do_iconv("UTF-8", "UCS-2BE", message, s, len, BUF_LONG)) >= 0) { args.flags |= AIM_IMFLAGS_UNICODE; len = ret; } else { @@ -2405,7 +2405,7 @@ void oscar_chat_msg(struct groupchat *c, char *message, int msgflags) if ((ret = do_iconv("UTF-8", "ISO8859-1", message, s, len, BUF_LONG)) >= 0) { flags |= AIM_CHATFLAGS_ISO_8859_1; len = ret; - } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) { + } else if ((ret = do_iconv("UTF-8", "UCS-2BE", message, s, len, BUF_LONG)) >= 0) { flags |= AIM_CHATFLAGS_UNICODE; len = ret; } else { |