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 ??????c??筝???桁???????鴻????????<????????吾????????????????????障?????
 
 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