Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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 :
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"
Fixed in master commit c3c20431a1c97277b66e662fe87e69f840d46511 and merged to jruby-1_6 in commit c886e010b591f07fbed59ec9b6af5ad302dab4d6