[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [OT] file:// vs. file:///

From: Klaus Rennecke <kre_at_tigris.org>
Date: 2004-07-06 00:20:46 CEST

Branko Čibej wrote:

> Klaus Rennecke wrote:
>> [...] See Section 3.10 in http://www.faqs.org/rfcs/rfc1738.html where
>> the file:/// URL is the special case with host name omitted because
>> it is localhost.
>> So it's file:/// and *not* file://.
> That paragraph says:
> As a special case, <host> can be the string "localhost" or the empty
> string; this is interpreted as `the machine from which the URL is
> being interpreted'.
> Note, "can be", not "must be". So to be consistent, it's "http:// and
> file://", not "http:// and file:///". because the second form implies
> a certain value for the scheme-specific data, and the first doesn't.

True. I give, you win :-)

It just happened to me that in some completely unrelated case people
were appending the absolute file name to file:// so that it resulted in
OK URLs on unix, but invalid (host name "C:") on weirder OSes.

> In fact, when we talk just about the RA-specific URL scheme, we should
> be using only "http:", "svn:" and "file:" -- the double slashes aren't
> part of the scheme, according to that RFC. [...]

Yes that sounds like a good suggestion. It is even easier on the eyes
because the email client does not highlight it as a link.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 6 00:32:14 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.