delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <dj AT delorie DOT com> |
To: | dave-cygwin AT centerclick DOT org |
CC: | cygwin AT cygwin DOT com |
In-reply-to: | <v04210106b692974bf0a1@[64.13.5.209]> (message from David Johnson |
on Mon, 22 Jan 2001 21:34:40 -0500) | |
Subject: | Re: problems with read() |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |