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

Re: Case-insensitivity causes data loss under win32

From: Carey Evans <careye_at_spamcop.net>
Date: 2003-10-08 12:18:19 CEST

"SteveKing" <steveking@gmx.ch> writes:

> If you would do it that way, then yes, the performance issue would be huge.
> But that would be like a brute-force attack.
> Much simpler:
> does this filename exist in textbase (and compare the paths
> case-insensitive)
> the standard c-library has comparison functions which ignore the case of
> strings.

On Windows NT and MacOS X, the filenames are in Unicode; duplicating
the OS's case folding perfectly gets a bit harder.

I have an alternative idea: since Subversion thinks it's replacing a
non-existent file, the new file could be created with the APR_EXCL
flag. The open of the supposedly missing file will then fail, rather
than overwriting the changes.

-- 
"Hanging is too good for a man who makes puns; he should be drawn and quoted."
        -- Fred Allen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 8 12:21:07 2003

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

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