Uploaded image for project: 'Leatherman'
  1. Leatherman
  2. LTH-84

Ruby API to_string does not handle encodings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • LTH 0.4.0
    • None
    • 2
    • Client 2016-02-24
    • Bug Fix
    • Fixed an issue where C++ code accessing Ruby strings, when called from a Ruby interpreter configured with a non-UTF-8 locale, would interpret the string incorrectly.

    Description

      The Ruby API's to_string method doesn't account for string encoding when retrieving values. The C++ interface expects UTF-8 encoding; if another encoding is used, the string will be copied as bytes and interpreted incorrectly in C++ programs expecting UTF-8.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michael.smith Michael Smith
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support