Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-505

Unicode support for Messenger.subscribe() for Python client is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • proton-0.6
    • None
    • python-binding

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            bmbouter Brian Bouterse
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: