Projects
Factory:RISC-V:Base
avahi
_service:tar_scm:0004-fix-bytestring-decoding-f...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0004-fix-bytestring-decoding-for-proper-display.patch of Package avahi
From a94f72081dd1d546a1d95d860311a1242315bb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= <merwok@netwok.org> Date: Sat, 29 Feb 2020 19:14:04 -0500 Subject: [PATCH 10/11] 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+="<b>" + _("TXT") + " <i>%s</i></b> = %s\n" % (k,v) else: txts = "<b>" + _("TXT Data:") + "</b> <i>" + _("empty") + "</i>" + + txts = txts.decode("utf-8") infos = "<b>" + _("Service Type:") + "</b> %s\n" infos += "<b>" + _("Service Name:") + "</b> %s\n" infos += "<b>" + _("Domain Name:") + "</b> %s\n" infos += "<b>" + _("Interface:") + "</b> %s %s\n" infos += "<b>" + _("Address:") + "</b> %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) -- 2.25.2
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2