problems with read()

DJ Delorie
Mon Jan 22 19:30:00 GMT 2001

If it's a binary file and contains a ^Z character, opening the file in
text mode causes it to stop reading at the ^Z character.  This
is expected.

What you should do is add O_BINARY to the open flags to force binary
handling of the file, regardless of the mount flags.

Want to unsubscribe from this list?
Check out:

More information about the Cygwin mailing list