From: =?utf-8?q?=C3=89ric_Araujo?= Date: Sat, 29 Feb 2020 19:14:04 -0500 Subject: fix bytestring decoding for proper display --- avahi-python/avahi-discover/avahi-discover.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/avahi-python/avahi-discover/avahi-discover.py b/avahi-python/avahi-discover/avahi-discover.py index 0db705d..4a2b575 100755 --- a/avahi-python/avahi-discover/avahi-discover.py +++ b/avahi-python/avahi-discover/avahi-discover.py @@ -238,12 +238,15 @@ class Main_window: txts+="" + _("TXT") + " %s = %s\n" % (k,v) else: txts = "" + _("TXT Data:") + " " + _("empty") + "" + + txts = txts.decode("utf-8") infos = "" + _("Service Type:") + " %s\n" infos += "" + _("Service Name:") + " %s\n" infos += "" + _("Domain Name:") + " %s\n" infos += "" + _("Interface:") + " %s %s\n" infos += "" + _("Address:") + " %s/%s:%i\n%s" + infos = infos.decode("utf-8") infos = infos % (stype, name, domain, self.siocgifname(interface), self.protoname(protocol), host, address, port, txts.strip()) self.info_label.set_markup(infos)