From 4b83c2066ba957fc8ed51496f914e076c3dfa555 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Fri, 1 Aug 2014 10:05:38 +0100 Subject: [PATCH] Don't attempt to encode topic to utf-8 twice. Thanks to Luc Milland. Change-Id: I954db79a6cf332350337c5147ac716cb3e6c4e2a --- ChangeLog.txt | 1 + src/paho/mqtt/client.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 32e5704..b2a50e9 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -4,6 +4,7 @@ v1.0.2 - Fix "protocol" not being used in publish.single() - Fix Client constructor for the case where "localhost" is unresolvable. Closes #439277. +- Don't attempt to encode topic to utf-8 twice. v1.0.1 ====== diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index 93308d2..5d2c910 100755 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -1656,7 +1656,7 @@ class Client(object): remaining_length = remaining_length + 2 self._pack_remaining_length(packet, remaining_length) - self._pack_str16(packet, utopic) + self._pack_str16(packet, topic) if qos > 0: # For message id -- 2.39.5