URL paths in setup.exe

Robert Collins robert.collins@itdomain.com.au
Tue May 7 05:10:00 GMT 2002



> -----Original Message-----
> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com] 
> Sent: Tuesday, May 07, 2002 9:50 PM

> 
> cygfile:// makes no sense at all on my MinGW platforms.  What 
> mingw are you talking about? cygfile:// to me only makes 
> sense in Cygwin land.

In cygwin land, file:// can access posix paths via the standard C
library and C++ library calls. In MinGW land how do you access cygwin
posix paths? Answer: create your own library to read the cygwin mount
table (which setup has), and then wrap your C++ and C lib calls via that
(which is what cygfile:// does).
 
 >
> > This means that:
> > file:///foo/bar.txt is /foo/bar.txt on posix, and Current 
> > drive:\foo\bar.txt on mingw.
> 
> I don't see that working natively, so it doesn't work on my 
> MinGW, what mingw are you talking about?  I tried both 
> Netscape and IE, they both understand file://c:/temp/foo.txt, 
> though.  However, file:///temp/foo.txt wasn't found.

Ok, well sounds like MS only do absolute paths (which the spec
requires). 
 
> >
> > As for file:// + d: + \foo\bar.txt, can we normalise that as 
> > file://d|/foo/bar.txt - that is what MS do, and will be 
> less confusing 
> > for users of the codebase (IMO).
> 
> As I've already stated file://c:/foo/bar.txt also works.

Sure. Try file://c|/foo/bar.txt. You'll find that that works too - and
that is conformant URI syntax, whereas file://c:/foo/bar.txt is not.

Rob



More information about the Cygwin-apps mailing list