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 Date: Wed, 16 Oct 2002 17:33:25 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: starting a cygwin app from a Windows Service Message-ID: <20021016213325.GA23673@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <9532AC3F9163F4458A2A212C4CF8A2EC2C9508 AT liilmtst03 DOT mailtask DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9532AC3F9163F4458A2A212C4CF8A2EC2C9508@liilmtst03.mailtask.com> User-Agent: Mutt/1.4i On Wed, Oct 16, 2002 at 04:20:41PM -0500, Madsen, Mark wrote: >When I run an application that uses the cygwin1.dll from either a Windows Service and then from the command line I get different results when trying to read a text file. > >As a Windows Service: >I use fopen and fgets to read a DOS text file and the CR/LF >combinations are handled properly. Meaning that I only see the single >LF. > >Running from a DOS command line: Using the exact same executable image >as above, both characters are in the buffer. Open the file using fopen ("foo", "rt") to force reading in text mode. cgf -- 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/