Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <200209041400.g84E0T2H015234@im1.sec.tds.net> X-Originating-IP: [64.238.239.186] From: To: cygwin AT cygwin DOT com Subject: Re:File reading problem with -mno-cygwin Date: Wed, 4 Sep 2002 9:00:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit As Corinna mentioned, opening the file in binary mode would eliminate the problem. The data file "sf" actually contains a byte 0x1A that is interpreted in text mode on DOS / Windows systems as end-of-file. In binary mode, this won't be interpreted as end- of-file. Joe -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/