Revision d4d8a7de617e0673be590261b33f5c5cd201d086

elb at pidgin.im elb at pidgin.im
Thu Jun 14 14:22:06 EDT 2007


-----------------------------------------------------------------
Revision: d4d8a7de617e0673be590261b33f5c5cd201d086
Ancestor: b51dc706160767b8c91e6e33364ca5cf3c821662
Author: elb at pidgin.im
Date: 2007-06-14T18:20:53
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/oscar/oscar.c
        libpurple/protocols/oscar/oscar.h

ChangeLog: 

This fixes a bustination of the official ICQ client in at least some
locales.  For away (and possibly other) messages, apparently the
official ICQ (5.1?) client of some locales converts messages which are
stored in UTF-8 from a locale-native character set to UCS-2BE; this
results in something which, when decoded "correctly", is gibberish.
Instead, we first try decoding from UCS-2BE to the locale-specific
character set, and if that validates as UTF-8, we display it, instead.
Since UTF-8 is relatively picky, hopefully this won't break too many
sane clients.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: d4d8a7de617e0673be590261b33f5c5cd201d086.diff
Type: text/x-diff
Size: 8056 bytes
Desc: not available
Url : http://pidgin.im/pipermail/commits/attachments/20070614/b3dc7b00/attachment.diff 


More information about the Commits mailing list