Issue #373 has been updated by Roger Pack.


Was this fixed in r20630 ?  
----------------------------------------
Bug #373: Mingw???IO#dup?????????????????
http://redmine.ruby-lang.org/issues/373

Author: _ wanabe
Status: Closed
Priority: Low
Assignee: Nobuyoshi Nakada
Category: test
Target version: 1.9.x
ruby -v: ruby 1.9.2dev (2009-11-06 trunk 25671) [i386-mingw32]


=begin
 ???????????????????
 ruby-list ???????????????????????????????????????????????????????????
 
 Mingw ???? trunk????test/ruby/test_io.rb ??? test_dup ??????????
 ?????????????大????????????????? IO????????????? dup ???繰?????????
 ??????????止?????????
 
 $ ./ruby -ve '
 a = []
 loop{a.push IO.pipe} rescue nil
 loop {a.push(p a[0][0].dup)}'
 ruby 1.9.0 (2008-07-24 revision 18196) [i386-mingw32]
 #<IO:0xbbdbe0> # ??????????????止???
 
 ????以??????????????????msvcrt ?????????????????????????
 
 $ cat test.c
 #include <stdio.h>
 #include <io.h>
 int main(int argc, char **argv) {
     int n = 0;
     while(_dup(0) != -1) n++;
     printf("n = %i\n", n);
     _dup(0);
     printf("fin\n");
     return 0;
 }
 
 $ gcc -mno-cygwin test.c && ./a.exe
 n = 2045 // ??????CTRL+C ??中????????????????止???
 
 $ gcc -mno-cygwin test.c -lmsvcr71 && ./a.exe
 n = 2045
 fin
 
 -- 
 ???????
=end



-- 
http://redmine.ruby-lang.org