Qpid
  1. Qpid
  2. QPID-3925

Fix string encoding support for Ruby 1.9

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.17
    • Fix Version/s: 0.17
    • Component/s: Ruby Client
    • Labels:
      None

      Description

      Submitted by Will Benton <willbenton@gmail.com>

      This patch ensures that all returned strings are treated as if they were of the default external encoding in Ruby 1.9. If we don't do this, then strings returned from QMF (e.g. as arguments) will have a nominal encoding of 'ASCII-8BIT' (i.e. raw bytes) and will not be comparable to strings created from within Ruby code or loaded from other sources. (Note that the ensure_encoding method could take a user-specified encoding; if it becomes necessary in the future to allow QMF users to specify encodings, this would be a straightforward change.)

        Activity

        Darryl L. Pierce created issue -
        Darryl L. Pierce made changes -
        Field Original Value New Value
        Attachment 0001-String-encoding-fixes-for-Ruby-1.9.patch [ 12521016 ]
        Ted Ross made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Ted Ross [ tedross ]
        Fix Version/s 0.17 [ 12320179 ]
        Resolution Fixed [ 1 ]
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ted Ross
            Reporter:
            Darryl L. Pierce
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development