Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6
    • Fix Version/s: JRuby 1.6.8, JRuby 1.7.0.RC1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      See https://github.com/ffi/ffi/issues/221 for original issue.

      require 'rubygems'
      require 'ffi'
      
      buffer = FFI::Buffer.new(6)
      buffer.put_string(0,"hello")
      buffer.get_string(0,5)
      # => "hello\u000"
      

        Activity

        Hide
        Wayne Meissner added a comment -

        Fixed in master commit c3c20431a1c97277b66e662fe87e69f840d46511 and merged to jruby-1_6 in commit c886e010b591f07fbed59ec9b6af5ad302dab4d6

        Show
        Wayne Meissner added a comment - Fixed in master commit c3c20431a1c97277b66e662fe87e69f840d46511 and merged to jruby-1_6 in commit c886e010b591f07fbed59ec9b6af5ad302dab4d6

          People

          • Assignee:
            Wayne Meissner
            Reporter:
            Wayne Meissner
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: