From: naruse@... Date: 2015-02-26T08:23:55+00:00 Subject: [ruby-core:68316] [Ruby trunk - Bug #10876] Win32API.new fails when an Array is given for the import argument Issue #10876 has been updated by Yui NARUSE. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: REQUIRED to 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: DONE ruby_2_2 r49761 merged revision(s) 49750. ---------------------------------------- Bug #10876: Win32API.new fails when an Array is given for the import argument https://bugs.ruby-lang.org/issues/10876#change-51671 * Author: Aaron Stone * Status: Closed * Priority: Normal * Assignee: Usaku NAKAMURA * ruby -v: 2.2.0 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: DONE ---------------------------------------- In Ruby 2.2.0, the Win32API.new method fails when an Array is given for the import argument. In all previous versions, it can be either an Array or a String. The mistake occurred when Aaron Patterson converted to Fiddle and expected the argument would be an Array ("import.map"), then later Nakamura-san switched to expect a String ("import.chars.map") however both of these are incorrect. The code a few lines above does this: [import].join... so it explicitly allows Array or String. Links to code history and a patch are offered at https://github.com/ruby/ruby/pull/835 -- https://bugs.ruby-lang.org/