delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/09/11:08:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 9 Jun 2004 11:08:19 -0400
From: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>
To: cygwin AT cygwin DOT com
Subject: [users's guide alert] Re: Textmode mounts broken in cygwin 1.5.10-3
Message-ID: <20040609150819.GB311485@Worldnet>
References: <40C5D50C DOT 4060503 AT gmx DOT net> <20040608155908 DOT GA202569 AT Worldnet> <40C5E9E2 DOT 7070008 AT gmx DOT net> <20040608170642 DOT GA653433 AT Worldnet> <40C704CE DOT 6060805 AT gmx DOT net>
Mime-Version: 1.0
In-Reply-To: <40C704CE.6060805@gmx.net>
User-Agent: Mutt/1.4.1i

On Wed, Jun 09, 2004 at 02:38:38PM +0200, W. Tuchan wrote:
> Pierre A. Humblet wrote:
> >On Tue, Jun 08, 2004 at 06:31:30PM +0200, W. Tuchan wrote:
> >
> >>>>58   26507 [main] cpp0 1652 open: open (main\loopbacktest.cpp, 0x0)
> >>>
> >>>
> >>>The mounts are not looked up because you are specifying a Windows path.
> >>>
> >>>Pierre
> >>
> >>If that is the reaseon then 1.5.10-3 behaves different that 1.5.9.
> >>Unfortunately I cannot change the path easyly because it is generated
> >>from nmake.
> >
> >
> >I think Cygwin always meant to consider paths with a \ as Windows
> >paths, but that was not consistently enforced until 1.5.10
> >AFAIK there is no way to specify a default for Windows paths.
> >Perhaps the cygdrive choice could apply to them as well, but
> >changing anything in this area is sure to break something, somewhere.
> >
> >Pierre
> 
> As I can see from other post as well the last change has already broken
> something. And the reasoning is not clear for me. Are Windows paths not
> considered because Windows files do not contain Windows style endlines?
> Or ist it because unix programs tolerating Windows paths should be able
> to cope with them.

It was done on 2004-03-25 to fix some other problem with Windows paths
that had been discussed on the list around that time. 
The general philosophy is that Windows paths should be left alone (no mount
table processing).
By the way, the User's guide still states that the default is "text".
It has been "binary" for the last couple of years.

> By the way I have always wondered how cygwin distinguishes between text
> and binary files on a textmode mount.

It relies on the application asking for a binary/text open in open() or 
fopen(), or being linked with binmode.o or one of its friends.
The mount modes are only used as a last recourse, just before taking the
default (see fhandler_base::set_flags).

Pierre

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019