This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: problems with read()
- To: dave-cygwin at centerclick dot org
- Subject: Re: problems with read()
- From: DJ Delorie <dj at delorie dot com>
- Date: Mon, 22 Jan 2001 22:29:38 -0500
- CC: cygwin at cygwin dot com
- References: <v04210106b692974bf0a1@[64.13.5.209]>
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: http://cygwin.com/ml/#unsubscribe-simple