From: WATANABE Hirofumi Date: 2001-01-01T01:21:22+09:00 Subject: [ruby-talk:8425] Re: A bug in ruby Jean Michel 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 #include 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