Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT 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 AT envy DOT delorie DOT com using -f From: DJ Delorie To: dave-cygwin AT centerclick DOT org CC: cygwin AT cygwin DOT 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