[ https://issues.apache.org/jira/browse/PROTON-505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Ross updated PROTON-505: ------------------------------- Labels: messenger (was: ) > Unicode support for Messenger.subscribe() for Python client is broken > --------------------------------------------------------------------- > > Key: PROTON-505 > URL: https://issues.apache.org/jira/browse/PROTON-505 > Project: Qpid Proton > Issue Type: Bug > Components: python-binding > Affects Versions: 0.6 > Reporter: Brian Bouterse > Priority: Minor > Labels: messenger > > When passing in a unicode string to Messenger.subscribe(), an error results. > Run this code to reproduce: > from proton import Messenger > mng = Messenger > mng.start() > unicode_subscribe_string = unicode("amqp://localhost/my_queue") > mng.subscribe(unicode_subscribe_string) > Resultant Error: > File "proton.py", line 447, in subscribe > sub_impl = pn_messenger_subscribe(self._mng, source) > TypeError: in method 'pn_messenger_subscribe', argument 2 of type 'char const > *' > I expected unicode strings to behave the same as non-unicode strings -- This message was sent by Atlassian JIRA (v6.3.4#6332)