Blame SOURCES/0010-fix-bytestring-decoding-for-proper-display.patch

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