local file system, (C:/.../file.txt) so I 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 Windo
t;user" mount types. The file is on the local file system,
(C:/.../file.txt) so I don't know if that applies here.
-Mark
-Original Message-
From: Dan Vasaru [mailto:[EMAIL PROTECTED]]
Sent: Wed 10/16/2002 5:09 PM
To: Madsen, Mark; [EMAIL PROTECTED]
Cc:
Subject:
orm is to handle 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
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
> -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", REA
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
t: Wednesday, October 16, 2002 11:21 PM
To: [EMAIL PROTECTED]
Subject: 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 Wi
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 t
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
9 matches
Mail list logo