From: nobuyoshi nakada Date: 2005-09-14T19:31:37+09:00 Subject: Re: Win Pipes and IO Hi, At Wed, 14 Sep 2005 18:56:56 +0900, Kroeger Simon (ext) wrote in [ruby-talk:156055]: > What I wanted to do was creating new IO objects instead of calling > fdopen myself, but I can't get it to work. The implementation of IO.new > calls fdopen so I realy have no clue why this should not do the trick. It worked successfully, with both of mswin32 and mingw32 ruby. $ tail -5 pipe.rb inp = IO.new(f_in, 'rb') outp = IO.new(f_out, 'wb') outp.print("Hellooooo\000") outp.close p inp.gets $ ruby18-mswin32.exe -v pipe.rb ruby 1.8.3 (2005-07-03) [i386-mswin32] "Hellooooo\000" $ ruby18-mingw32.exe -v pipe.rb ruby 1.8.3 (2005-09-12) [i386-mingw32] "Hellooooo\000" -- Nobu Nakada