In article <20010101010243.394227.eban / os.rim.or.jp>, WATANABE Hirofumi <eban / os.rim.or.jp> wrote: >: print "\032\n" >: >: produces >: >: in `write': No space left on drive (ENOSPC) (Errno::ENOSPC) > >This is a feature of DJGPP libc library. ^^bug^^^ you mean? >#include <stdio.h> >#include <errno.h> >main() >{ > printf("\032\n"); > fprintf(stderr, "%s\n", strerror(errno)); >} >$ gcc cz.c >$ ./a >No space left on drive (ENOSPC) What is funny, only the error message is wrong: the printf is done allright I checked the same happens with write(1,"\032\n",2) So the only problem with ruby is trying to raise an exception when appropriate :) >You can use IO#binmode. >$ ruby -ve '$stdout.binmode;print "\032\n"' Thanks for the fix; but I will signal the problem to djgpp-maintainers anyway. I like djgpp ruby.exe because it is small (286K after UPX. It fits on a diskette with some libraries) Best regards, Jean MICHEL