changeset dd57b96138ad in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=dd57b96138ad description: fix set avatar in remote control
diffstat:
src/remote_control.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fa3f711c4847 -r dd57b96138ad src/remote_control.py --- a/src/remote_control.py Thu Jan 03 17:02:14 2013 +0400 +++ b/src/remote_control.py Thu Jan 03 17:03:40 2013 +0400 @@ -907,7 +907,7 @@ if not invalid_file and filesize < 16384: fd = open(picture, 'rb') data = fd.read() - avatar = base64.b64encode(data.encode('utf-8')).decode('utf-8') + avatar = base64.b64encode(data).decode('utf-8') avatar_mime_type = mimetypes.guess_type(picture)[0] vcard={} vcard['PHOTO'] = {'BINVAL': avatar}