From d5c860b4f42cc7cf3b767d1a7b8227e8685685e7 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 12 Mar 2012 14:03:57 +0200 Subject: [PATCH] test-discovery: Fix printing non-ASCII characters --- test/test-discovery | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-discovery b/test/test-discovery index b7c1c63d0..20312f7c5 100755 --- a/test/test-discovery +++ b/test/test-discovery @@ -11,6 +11,8 @@ def device_found(address, properties): for key in properties.keys(): value = properties[key] + if type(value) is dbus.String: + value = unicode(value).encode('ascii', 'replace') if (key == "Class"): print " %s = 0x%06x" % (key, value) else: -- 2.47.3