don't know
if that applies here.
-Mark
-Original Message-
From: Dan Vasaru [mailto:dvasaru;broadpark.no]
Sent: Wed 10/16/2002 5:09 PM
To: Madsen, Mark; [EMAIL PROTECTED]
Cc:
Subject:RE: starting a CYGWIN app from a Windows Service
Mark,
As Chris suggested, if you
the translation yourself.
Dan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Christopher Faylor
Sent: Thursday, October 17, 2002 1:07 AM
To: [EMAIL PROTECTED]
Subject: Re: starting a cygwin app from a Windows Service
On Thu, Oct 17, 2002 at 12:09:35AM +0200
details
if you need more data points to flesh out your overall understanding of
file modes in Cygwin.
Larry
Original Message:
-
From: Madsen, Mark [EMAIL PROTECTED]
Date: Thu, 17 Oct 2002 08:16:24 -0500
To: [EMAIL PROTECTED]
Subject: RE: starting a CYGWIN app from a Windows Service
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
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
On Thu, Oct 17, 2002 at 12:09:35AM +0200, Dan Vasaru wrote:
Mark,
As Chris suggested, if you want consistent behaviour under cygwin, always
open text files in text mode (O_TEXT or rt).
Even better, wrt portability to Unix platforms, is to:
1. open the file in binary mode
2. be prepared to
-Original Message-
From: Christopher Faylor [mailto:[EMAIL PROTECTED]]
I don't know. I think it would be far simpler to have something like:
#ifdef __CYGWIN__
# define READTEXT rt
#else
# define READTEXT r
#endif
.
.
.
FILE fp = fopen (foo, READTEXT);
Doesn't
On Wed, Oct 16, 2002 at 07:49:19PM -0400, Rolf Campbell wrote:
-Original Message-
From: Christopher Faylor [mailto:[EMAIL PROTECTED]]
I don't know. I think it would be far simpler to have something like:
#ifdef __CYGWIN__
# define READTEXT rt
#else
# define READTEXT r
#endif
8 matches
Mail list logo