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

Re: [Issue 1495] - Case sensitivity problem using file: on Windows

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-09-03 00:46:02 CEST

issues@subversion.tigris.org wrote:
> http://subversion.tigris.org/issues/show_bug.cgi?id=1495
>
> ------- Additional Comments From kfogel@tigris.org 2003-09-01 11:22 PDT -------
> Yeah, that's annoying. Maybe the schema://host portion of a URL
> should be case-insensitively compared always, when checking for
> different repositories?

If it isn't already, it probably should be. But this issue is about the drive letter (which I believe is part of the "path" portion of the URL), as in "file:///c:/blah" versus "file:///C:/blah".

> Julian, if you have a Windows environment for testing, this might be

I don't have a Windows environment (except Wine, but I'm not very familiar with it and don't know if it should be trusted for this sort of testing).

> what you've been looking for. Adding you to CC list; just assign it
> to yourself and mark as started if you're interested.

Thanks. If I were to investigate it, I'd begin:
  1. Check the case-sensitivity rules for URLs.
  2. Check for any special cases for "file:" URLs.
  3. Check for any official standard or consensus on handling drive letters in URLs, and whether the case-sensitivity of the drive letter should be different from that of the rest of the path.

I have a sort of feeling that case-sensitivity rules for the "path" portion of a URL might well be "It is the destination system's job to resolve a URL, including deciding whether it is case-sensitive." In that case we would have to have a-priori knowledge of the destination system. But - hey -
  a. If the "file:" schema is being used, the destination system == this system.
  b. If a drive letter is being used, the destination system is Windows, and at least the drive letter must be case-insensitive. (The rest of the path is probably case-insensitive too. Is that always the case on Windows?)

To resolve the issue as it is stated, it would probably be safe and sufficient just to make drive-letter comparisons case-insensitive. (That assumes that we really know that a drive letter is being mentioned, as opposed to a Unix path that happens to begin with a letter followed by a colon.) But it would be good to sort out the case-sensitivity of the rest of the path at the same time, if possible.

Sorry ... this isn't a particularly good one for me, though I suppose I could check that we are doing the right thing in terms of case-sensitivity at least in the absence of a drive letter.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 3 00:46:06 2003

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.