[Win32utils-devel] Re: Win32,
file descriptors and rb_io_check_writable()
win32utils-devel at rubyforge.org
win32utils-devel at rubyforge.org
Tue Nov 16 10:22:39 EST 2004
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
compiles fine, and I don't get any warnings, but it simply doesn't seem
to write anything to a file when I tried.
See my note on the ML for more details.
Dan
More information about the win32utils-devel
mailing list