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/