summaryrefslogtreecommitdiff
path: root/tools/glib-client-gen.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-04 15:59:55 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-04 15:59:55 +0000
commite53b271c769c150790f8c2cb3f30d792b4f6aa40 (patch)
treec76a5f87d6aa14130cdca2cdc7d98c9b35624b2a /tools/glib-client-gen.py
parenta48b6f8213a61b52de1db60ccf60a0e83563f85a (diff)
downloadtelepathy-glib-e53b271c769c150790f8c2cb3f30d792b4f6aa40.tar.gz
glib-client-gen: cope with Unicode characters in the spec
20080404155955-53eee-4b773cdd6e5a6f5f329d9c84214cf792cd9959c4.gz
Diffstat (limited to 'tools/glib-client-gen.py')
-rw-r--r--tools/glib-client-gen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/glib-client-gen.py b/tools/glib-client-gen.py
index fede212dc..aca3cceb7 100644
--- a/tools/glib-client-gen.py
+++ b/tools/glib-client-gen.py
@@ -57,9 +57,13 @@ class Generator(object):
self.proxy_arg = 'gpointer '
def h(self, s):
+ if isinstance(s, unicode):
+ s = s.encode('utf-8')
self.__header.append(s)
def b(self, s):
+ if isinstance(s, unicode):
+ s = s.encode('utf-8')
self.__body.append(s)
def get_iface_quark(self):