gaim/gaim

Parents cfbbeef1d78b
Children 94922e878ad5
(14:55:59) Paco-Paco: cvs commit: Use UCS-4BE instead of UCS-4 to avoid the BOM on some systems (Solaris)
  • +1 -0
    ChangeLog
  • +5 -2
    src/util.c
  • --- a/ChangeLog Wed Feb 05 12:32:14 2003 -0500
    +++ b/ChangeLog Thu Feb 13 14:55:20 2003 -0500
    @@ -5,6 +5,7 @@
    * Fix an oscar bug that caused some messages from
    AOL 8.0 to be dropped (Thanks Mark Doliner)
    * Changed "openprojects" to "freenode" in irc.c
    + * Fixed charset conversion on systems which use a BOM for UCS-4 (Thanks, Alfredo Pen~a, Ethan Blanton)
    version 0.59.8 (01/06/2003):
    * Ripped out all gtk2 support (Thanks Nathan Walp).
    --- a/src/util.c Wed Feb 05 12:32:14 2003 -0500
    +++ b/src/util.c Thu Feb 13 14:55:20 2003 -0500
    @@ -1138,8 +1138,11 @@
    if (!in)
    return NULL;
    - cd1 = iconv_open("UCS-4", srcset);
    - cd2 = iconv_open(destset, "UCS-4");
    + /* We're using UCS-4BE here because, on some systems, apparently
    + * UCS-4 without an endianness specifier includes a troublesome
    + * BOM */
    + cd1 = iconv_open("UCS-4BE", srcset);
    + cd2 = iconv_open(destset, "UCS-4BE");
    if (cd1 == (iconv_t) -1 || cd2 == (iconv_t) -1) {
    if ( cd1 != (iconv_t)-1 ) {