Displaying 2 results from an estimated 2 matches for "rb_io_mode_flags".
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
...ctal dump tool for windows to verify. Hopefully, you''ll see what I
>mean.
>
Sorry if you receive this message again.
My mail account seems to be messed.
That is due to detault translation mode.
Insert
_setmode(NUM2INT(args[0]),_O_TEXT);
after
RFILE(self)->fptr->mode = rb_io_mode_flags("w+");
RFILE(self)->fptr->f = rb_fdopen(NUM2INT(args[0]),"w+");
in case of TEXT MODE.
>Regards,
>
>Dan
Regards,
Park Heesob
--MIME Multi-part separator--
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
Hi Park,
> That is due to detault translation mode.
>
> Insert
> _setmode(NUM2INT(args[0]),_O_TEXT);
> after
> RFILE(self)->fptr->mode = rb_io_mode_flags("w+");
> RFILE(self)->fptr->f = rb_fdopen(NUM2INT(args[0]),"w+");
> in case of TEXT MODE.
Ah, thanks.
On a side note, any clue as to why Nobu''s suggestion doesn''t seem to
work? I tried his suggested patch of sending a second argument. It
comp...