Stumbled upon this looking into something else, but is this a problem
for the level of 1.9 compliance you want to achieve in 1.6.0? It works
as expected in both:
- ruby 1.9.2p160 (2011-01-16 revision 30579) [i386-mingw32]
- ruby 1.9.3dev (2011-01-19 trunk 30603) [i386-mingw32]
io_popen.rb
IO.popen [‘c:\Program Files\7-Zip\7z.exe’] do |i|
puts i.read
end
1.6.0.RC1 binary download
C:\Users\Jon\Documents\RubyDev\sandbox>jruby --1.9 -v io_popen.rb
jruby 1.6.0.RC1 (ruby 1.9.2 trunk 136) (2011-01-10 769f847) (Java
HotSpot™ Client VM 1.6.0_23) [Windows 7-x86-java]
org/jruby/RubyIO.java:3499:in popen': can't convert Array into String (TypeError) from io_popen.rb:1:in
(root)’
master
C:\Users\Jon\Documents\RubyDev\sandbox>jruby --1.9 -v io_popen.rb
jruby 1.6.0.RC1 (ruby 1.9.2 patchlevel 136) (2011-01-19 89ec563) (Java
HotSpot™ Client VM 1.6.0_23) [Windows 7-x86-java]
org/jruby/RubyIO.java:3499:in popen': can't convert Array into String (TypeError) from io_popen.rb:1:in
(root)’
Jon
blog: http://jonforums.github.com/
This is a general 1.9 compat issue since I can see it on MacOS. We
must not support the new array form for popen yet. Could you open an
issue for this on http://jira.codehaus.org/browse/JRUBY?
-Tom
On Wed, Jan 19, 2011 at 1:19 PM, Jon [email protected] wrote:
jruby 1.6.0.RC1 (ruby 1.9.2 patchlevel 136) (2011-01-19 89ec563) (Java
HotSpot™ Client VM 1.6.0_23) [Windows 7-x86-java]
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
–
blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]
Thanks!
-Tom
On Wed, Jan 19, 2011 at 2:06 PM, Jon [email protected] wrote:
1.6.0.RC1 binary download
from io_popen.rb:1:in `(root)’
http://xircles.codehaus.org/manage_email
blog: http://jonforums.github.com/
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
–
blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]
http://jira.codehaus.org/browse/JRUBY-5389
- ruby 1.9.3dev (2011-01-19 trunk 30603) [i386-mingw32]
jruby 1.6.0.RC1 (ruby 1.9.2 trunk 136) (2011-01-10 769f847) (Java HotSpot™
Client VM 1.6.0_23) [Windows 7-x86-java]
http://xircles.codehaus.org/manage_email
Jon
blog: http://jonforums.github.com/