From: "Florian Groß" Date: 2004-08-17T12:03:27+09:00 Subject: [BUG] IO#reopen crashes Moin! Here are some code samples and their effects. The following ones are Windows-specific: irb(main):001:0> STDOUT.reopen('') c:/ruby/lib/ruby/1.8/irb.rb:152: [BUG] rb_sys_fail() - errno == 0 ruby 1.8.2 (2004-07-16) [i386-mswin32] C:\dev\ruby>ruby -e "STDOUT.reopen('')" -e:1:in `reopen': No such file or directory - (Errno::ENOENT) from -e:1 irb(main):001:0> STDERR.reopen('') Errno::ENOENT: No such file or directory - C:\dev\ruby>ruby -e "STDERR.reopen('')" -e:1: [BUG] rb_sys_fail() - errno == 0 ruby 1.8.2 (2004-07-16) [i386-mswin32] And this one works on both Linux and Windows: (reported by David Black) irb(main):001:0> IO.allocate.reopen("/nothing") (irb):1: [BUG] Segmentation fault ruby 1.8.2 (2004-07-29) [i686-linux] irb(main):001:0> IO.allocate.reopen("/nothing") (irb):1: [BUG] Segmentation fault ruby 1.8.2 (2004-07-16) [i386-mswin32] Regards, Florian Gross