From fe27cfc360733fd08636d5e0d349552ed75edb4b Mon Sep 17 00:00:00 2001 From: Robert McQueen Date: Mon, 24 Oct 2005 18:29:50 +0000 Subject: 2005-10-24 Robert McQueen * python/dbus_bindings.pyx (String, MessageIter): make D-Bus strings derive from unicode instead of str, and encode/decode UTF-8 when marshalling/unmarshalling bus messages * python/introspect_parser.py: encode introspection data as UTF-8 before passing the buffer into libxml2 * test/python/test-client.py: add unicode test strings * test/data/valid-service-files/.cvsignore, test/python/.cvsignore: ignore generated python test files --- python/introspect_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/introspect_parser.py') diff --git a/python/introspect_parser.py b/python/introspect_parser.py index 6e94ccc..40cae1e 100644 --- a/python/introspect_parser.py +++ b/python/introspect_parser.py @@ -8,7 +8,7 @@ def process_introspection_data(data): XMLREADER_START_ELEMENT_NODE_TYPE = 1 XMLREADER_END_ELEMENT_NODE_TYPE = 15 - stream = cStringIO.StringIO(data) + stream = cStringIO.StringIO(data.encode('utf-8')) input_source = libxml2.inputBuffer(stream) reader = input_source.newTextReader("urn:introspect") -- cgit v1.2.3