win32utils-devel@rubyforge.org
2004-Nov-16 10:22 UTC
[Win32utils-devel] 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 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
Maybe Matching Threads
- Re: Win32, file descriptors and rb_io_check_writable()
- [LLVMdev] clan -x assembler fails on vcvttsd2siq instruction
- [LLVMdev] clan -x assembler fails on vcvttsd2siq instruction
- [LLVMdev] clan -x assembler fails on vcvttsd2siq instruction
- [961] branches/wxruby2/wxwidgets_282/swig: Move wxDateTime typemap into shared file, map to core Time class instead