[telepathy-qt4/master] Cope with UTF-8 in spec XML

Will Thompson will.thompson at collabora.co.uk
Mon Nov 30 04:52:18 PST 2009


---
 tools/qt4-types-gen.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/qt4-types-gen.py b/tools/qt4-types-gen.py
index e2e0c4f..6205e22 100644
--- a/tools/qt4-types-gen.py
+++ b/tools/qt4-types-gen.py
@@ -211,8 +211,8 @@ void registerTypes()
 
         # Write output to files
 
-        open(self.declfile, 'w').write(''.join(self.decls))
-        open(self.implfile, 'w').write(''.join(self.impls))
+        open(self.declfile, 'w').write(''.join(self.decls).encode("utf-8"))
+        open(self.implfile, 'w').write(''.join(self.impls).encode("utf-8"))
 
     def decl(self, str):
         self.decls.append(str)
-- 
1.5.6.5



More information about the telepathy-commits mailing list