Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: darkmoon+priv@world.std.com (Jeff)
To: cygwin@cygwin.com
Subject: Re: Possible bug in text/binary mode handling in cygwin1.dll version1.5
Date: Mon, 13 Oct 2003 08:11:53 -0700
Organization: Less and less each day..
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <5Csi/8Wu7mqJ092yn@world.std.com>
Lines: 25

Vlad wrote:
>In other words, text mode is ignored if Windows-style path is
>specified.
>
>I'm concerned about this behavior because it breaks some 3rd party
>tools that I'm using. In particular, a C compiler chokes on
>multiline macros. As a result, I have to juggle between 1.5 (for normal
>usage) and 1.3 (for running the tools that I've mentioned).
>
>Could somebody please look into fixing this or suggest a workaround?

I noticed this same behavior and posted on it a bit earlier this month. 
I don't have the wrinkles ironed out of my workaround yet, but it will 
use 'cygpath' to convert the Windows-style path name to POSIX. This is 
possible in bash and other shells with a construct like

$ command -option `cygpath c:\whereever\whatever`

My situation is complicated by a chain of software: A newsreader/mail 
user agent which runs in windows console mode calls an editor shell, 
which then calls a Cygwin text editor (one that has no internal line 
terminator handling). I have to get bash in there somewhere to process 
the above command line, complete with metacharacters. :(

Jeff

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

