]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commitdiff
Don't attempt to encode topic to utf-8 twice.
authorRoger A. Light <roger@atchoo.org>
Fri, 1 Aug 2014 09:05:38 +0000 (10:05 +0100)
committerRoger A. Light <roger@atchoo.org>
Fri, 1 Aug 2014 09:05:38 +0000 (10:05 +0100)
Thanks to Luc Milland.

Change-Id: I954db79a6cf332350337c5147ac716cb3e6c4e2a

ChangeLog.txt
src/paho/mqtt/client.py

index 32e5704e36e6075e405a4db22c4d79eed108468d..b2a50e92c1182d6d444cd59910bdfb1e30f3eb50 100644 (file)
@@ -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
 ======
index 93308d2e0d3e5acb12921fb7f79b1c1a3ed1bc34..5d2c9108dcc84569e7b3fc5d1d9e44f2c61402e2 100755 (executable)
@@ -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