changeset 30995:2c7d3c224f39

Make purple-remote expect and produce UTF-8 instead of ASCII. Fixes #12049. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Guillaume Brunerie
date Sat, 18 Sep 2010 22:23:13 +0000
parents d4e267c04d57
children ef625abecdbb
files libpurple/purple-remote
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/purple-remote	Sat Sep 18 17:52:07 2010 +0000
+++ b/libpurple/purple-remote	Sat Sep 18 22:23:13 2010 +0000
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 
+import codecs
 import dbus
 import re
 import urllib
@@ -7,6 +8,9 @@
 
 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