hello,
I use my ruby program to dialog with an external program using IO.popen.
under linux it works well.
but under windows, I get this error (that I reproduce with an example
code)
gg=IO.popen(‘date’,‘r+’)
p gg.gets
result:
Y:\jef\go>testio.rb
“La date du jour est\377: mar. 25/02/2003 \n”
Y:\jef\go\testio.rb:2: Invalid file pointer passed to mypclose! (fatal)
Y:\jef\go\testio.rb:2: [BUG] Segmentation fault
ruby 1.6.7 (2002-03-01) [i586-mswin32]
abnormal program termination
Y:\jef\go>
am I doing something wrong ?
thx,
jf
···
–
/ do you play Go? \
\ ^__^
\ (oo)\_______
(__)\ )\/\
>>----w |
>> >>