1.9.1's rubyw.exe can not read from pipe?

I found this problem when writing a GUI app with wxruby.

Minimal test code (run “dir” and write result to “res.txt”):

File.open 'res.txt', 'w' do |f|
  f << `dir`
end

ruby.exe and rubyw.exe of 1.8.7p72 are fine,
but rubyw.exe of 1.9.1p243 (from rubyinstaller.org) writes an empty
file.

Is it a bug of rubyinstaller or 1.9 ?

My OS is Windows 7.

ruby.exe and rubyw.exe of 1.8.7p72 are fine,
but rubyw.exe of 1.9.1p243 (from rubyinstaller.org) writes an empty
file.

Is it a bug of rubyinstaller or 1.9 ?

My OS is Windows 7.

I get the same thing here with 1.9.1 but not with 1.9.2, so I suppose
it’s some bug fix that needs to be backported.
-r