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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: proton-0.6
    • Fix Version/s: None
    • Component/s: python-binding
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: