ports/dns/py-pybonjour/files/patch-pybonjour.py
John Hixson e476f130ca py-bonjour: rename to dns/py-pybonjour
- This keeps the port name aligned with the project name

Approved by:	miwi (mentor)
Differential Revision:	https://reviews.freebsd.org/D18959
2019-01-29 15:04:18 +00:00

11 lines
342 B
Python

--- pybonjour.py.orig 2013-10-02 17:41:05 UTC
+++ pybonjour.py
@@ -1116,7 +1116,7 @@ def DNSServiceRegister(
type=type(txtRecord)))
if not txtRecord:
- txtLen, txtRecord = 1, '\0'
+ txtLen, txtRecord = 1, '\0'.encode('utf-8')
else:
txtLen, txtRecord = _string_to_length_and_void_p(txtRecord)