Changeset af496d8


Ignore:
Timestamp:
2013-05-06T15:13:49Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a7e6ba9
Parents:
f539d6e
Message:

Use UCS-2BE instead of UNICODEBIG as the UTF16 charset used by the OSCAR
module. Might improve compatibility with non-glibc iconv libs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    rf539d6e raf496d8  
    981981               
    982982                if (args->icbmflags & AIM_IMFLAGS_UNICODE)
    983                         src = "UNICODEBIG";
     983                        src = "UCS-2BE";
    984984                else
    985985                        src = "ISO8859-1";
     
    17691769                                args.flags |= AIM_IMFLAGS_ISO_8859_1;
    17701770                                len = ret;
    1771                         } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) {
     1771                        } else if ((ret = do_iconv("UTF-8", "UCS-2BE", message, s, len, BUF_LONG)) >= 0) {
    17721772                                args.flags |= AIM_IMFLAGS_UNICODE;
    17731773                                len = ret;
     
    24062406                        flags |= AIM_CHATFLAGS_ISO_8859_1;
    24072407                        len = ret;
    2408                 } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) {
     2408                } else if ((ret = do_iconv("UTF-8", "UCS-2BE", message, s, len, BUF_LONG)) >= 0) {
    24092409                        flags |= AIM_CHATFLAGS_UNICODE;
    24102410                        len = ret;
Note: See TracChangeset for help on using the changeset viewer.