Jean Michel <jmichel / schur.institut.math.jussieu.fr> writes:

: I found a funny bug in the djgpp distribution of ruby:
:
: print "\032\n"
:
: produces
:
: in `write': No space left on drive (ENOSPC) (Errno::ENOSPC)

This is a feature of DJGPP libc library.

$ cat >cz.c
#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) 

You can use IO#binmode.
$ ruby -ve '$stdout.binmode;print "\032\n"'
ruby 1.7.0 (2000-12-29) [i386-msdosdjgpp]

-- 
eban