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