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

Re: case insensitivity revisited

From: Jeremy Pereira <jeremyp_at_jeremyp.net>
Date: 2006-10-26 18:19:11 CEST

On 26 Oct 2006, at 15:56, James M. Lawrence wrote:

>
> I see several possible solutions:
>
> (a) the svn client could treat foo.h and Foo.h the same.
> (b) emacs could have canonicalized the filename in the first place.
> (c) gcc could have a flag to canonicalize reported filenames.
> (d) reinstall OS X using case-sensitive HFS+ (forcing an error at
> #include "foo.h").
>
> (I am using carbonized emacs from darwinports.)
>
> My own opinion is that case-preserving, case-insensitive filesystems
> are conceptually broken when mixed with case-sensitive filesystems.
> The problem is not the filesystem per se, but that there is no
> enforced convention for tools which deal with the filesystem.

(e) fix emacs so that it doesn't silently rename files when you save
them after modification.

I'd seriously avoid option d on your start-up drive since from the
beginning of (Mac) time, developers have known the Mac file system is
case insensitive, case preserving. Who knows what software will break.

My opinion is that case sensitive file systems are conceptually
broken. (Jeremy Pereira and jeremy pereira are recognisably the same
person. Why are computers different?) However, we have to live
with the situation we have got and I can't see a way of making
Subversion work differently that doesn't break things in other
horrible ways.

By the way, on Mac the following:

#include <stdio.h>

int main ()
{
         FILE* fp = fopen ("bar", "w") ;
         if (fp != NULL)
         {
                 fprintf (fp, "Hello\n") ;
                 fclose (fp) ;
         }
         return 0 ;
}

will preserve the case of a file named "Bar", but

vi bar
<edits>
:wq

does not (vi has the same issue as emacs).

"open -a xcode bar" preserves case correctly as you'd hope for a Mac
application.

>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 26 18:20:17 2006

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.