You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Brian Bouterse (JIRA)" <ji...@apache.org> on 2014/01/31 18:22:08 UTC

[jira] [Created] (PROTON-505) Unicode support for Messenger.subscribe() for Python client is broken

Brian Bouterse created PROTON-505:
-------------------------------------

             Summary: 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


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.1.5#6160)