pidgin: 738b56a6: Make purple-remote expect and produce UT...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sat Sep 18 18:35:47 EDT 2010


----------------------------------------------------------------------
Revision: 738b56a615d291a1bedab422f2e8d912317789a2
Parent:   b63bb09e1887b3f4fab117b64a18cfec6dc15875
Author:   Guillaume Brunerie
Date:     09/18/10 18:23:13
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/738b56a615d291a1bedab422f2e8d912317789a2

Changelog: 

Make purple-remote expect and produce UTF-8 instead of ASCII.  Fixes #12049.

Changes against parent b63bb09e1887b3f4fab117b64a18cfec6dc15875

  patched  libpurple/purple-remote

-------------- next part --------------
============================================================
--- libpurple/purple-remote	10351d6a3dfd130c624f9d1d9dd63847d9b11520
+++ libpurple/purple-remote	dec82db95d4c40ea1136b733d34392b4d4476db3
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 
+import codecs
 import dbus
 import re
 import urllib
@@ -7,6 +8,9 @@ import xml.dom.minidom 
 
 import xml.dom.minidom 
 
+sys.stdin = codecs.getwriter('utf-8')(sys.stdin);
+sys.stdout = codecs.getwriter('utf-8')(sys.stdout);
+
 xml.dom.minidom.Element.all   = xml.dom.minidom.Element.getElementsByTagName
 
 obj = None


More information about the Commits mailing list