On Mon, 25 Mar 2002 21:10:40 GMT, Paul Brannan <paul / atdesk.com> wrote:

>When Ruby does search for end of file, it calls feof to find out if the
>end-of-file indicator is set.  If it is not, then it tries to read, to
>see if the file pointer is at the end of the file (and if not, puts the
>character it read back).  Ruby does this using getc, which returns an
>int (not a char).  getc has a special return value EOF that indicates
>end-of-file; note that this is not same as the "end-of-file character"
>and is well-defined by the C standard.
>
>Perhaps there is a linker or compiler option you can use when you
>compile Ruby to get the C library to ignore the end-of-file character.

Well, if I had built Ruby from source, I might be able to do this. As I'm just a
poor helpless [l]user of the Windows release, that's not happening. I guess I'll
just deal with it unless Andy wants to jump on it.

Thanks,

Ronald E Jeffries
http://www.XProgramming.com
http://www.objectmentor.com
I'm giving the best advice I have. You get to decide whether it's true for you.