comparison libpurple/protocols/oscar/odc.c @ 28611:8a90bd0a3b79

Plucked d2a1d52b3bbf29baa53b9ddaa635d50b6332064f from im.pidgin.adium by Zac West: Fixed sending DIM messages' encoding. Fixes #9087. The encoding bytes were being written in the wrong location, so the messages were being read back as ASCII and failing conversion, ending up being empty and not being displayed. Plucked f5376d42261b8efc3d889314df9896bb10d3fe16 from im.pidgin.adium: iChat sends direct IM messages with its encoding as 0x000d, which was being forced-interpreted as ASCII. Also, added better debug logging for charset information being received. applied changes from 212bd3655451599364562cabe553c5b7a19134ae through d2a1d52b3bbf29baa53b9ddaa635d50b6332064f applied changes from d2a1d52b3bbf29baa53b9ddaa635d50b6332064f through f5376d42261b8efc3d889314df9896bb10d3fe16
author Evan Schoenberg <evan.s@dreskin.net>
date Sun, 22 Nov 2009 18:56:06 +0000
parents f541583e31bd
children a347a4cd1caf
comparison
equal deleted inserted replaced
28610:97900b3b55ca 28611:8a90bd0a3b79
108 byte_stream_put16(&bs, 0x0000); 108 byte_stream_put16(&bs, 0x0000);
109 byte_stream_put16(&bs, 0x0000); 109 byte_stream_put16(&bs, 0x0000);
110 byte_stream_put16(&bs, 0x0000); 110 byte_stream_put16(&bs, 0x0000);
111 byte_stream_put16(&bs, 0x0000); 111 byte_stream_put16(&bs, 0x0000);
112 byte_stream_put32(&bs, frame->payload.len); 112 byte_stream_put32(&bs, frame->payload.len);
113 byte_stream_put16(&bs, 0x0000);
114 byte_stream_put16(&bs, frame->encoding); 113 byte_stream_put16(&bs, frame->encoding);
114 byte_stream_put16(&bs, 0x0000);
115 byte_stream_put16(&bs, 0x0000); 115 byte_stream_put16(&bs, 0x0000);
116 byte_stream_put16(&bs, frame->flags); 116 byte_stream_put16(&bs, frame->flags);
117 byte_stream_put16(&bs, 0x0000); 117 byte_stream_put16(&bs, 0x0000);
118 byte_stream_put16(&bs, 0x0000); 118 byte_stream_put16(&bs, 0x0000);
119 byte_stream_putraw(&bs, frame->bn, 32); 119 byte_stream_putraw(&bs, frame->bn, 32);