This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: starting a cygwin app from a Windows Service


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]