Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Date: Mon, 22 Jan 2001 22:29:38 -0500 Message-Id: <200101230329.WAA05649@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj@envy.delorie.com using -f From: DJ Delorie To: dave-cygwin@centerclick.org CC: cygwin@cygwin.com In-reply-to: (message from David Johnson on Mon, 22 Jan 2001 21:34:40 -0500) Subject: Re: problems with read() References: 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