Bug #17934
closedclipboard gem fail on Ruby 3.0.1
Description
gem install clipboard (Which was used well in Ruby 2.XX):
Fetching clipboard-1.3.5.gem
Successfully installed clipboard-1.3.5
Parsing documentation for clipboard-1.3.5
Installing ri documentation for clipboard-1.3.5
Done installing documentation for clipboard after 0 seconds
1 gem installed
content of D:/R/hike/test.rb:
frozen_string_literal: true¶
require 'clipboard'
Clipboard.copy('content')
After run test.rb:
D:/Ruby/lib/ruby/gems/3.0.0/gems/clipboard-1.3.5/lib/clipboard/windows.rb:76:in put_bytes': invalid memory write at address=0x0000000000000000 (FFI::NullPointerError) from D:/Ruby/lib/ruby/gems/3.0.0/gems/clipboard-1.3.5/lib/clipboard/windows.rb:76:in
copy'
from D:/Ruby/lib/ruby/gems/3.0.0/gems/clipboard-1.3.5/lib/clipboard.rb:62:in copy' from D:/R/hike/test.rb:3:in
'
Files