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

Re: case sensitivity questions - oh no!!

From: Martin Tomes <lists_at_tomes.org>
Date: 2005-07-25 14:48:21 CEST

Simon Large wrote:
> Hi folks,
>
> 1. Martin, maybe you could add an optional section to your pre-commit
> hook which restricts the character set allowed in filenames to ones you
> *know* how to case fold, pure ASCII in the limiting case. eg. the
> subversion project has committers from all over the world, but filenames
> are always ASCII (and log messages in english). It is up to the hook
> installer to decide what character set should be used for their repository.

I am not sure that this has any benfit, the script will behave correctly
for ASCII file names without any changes. As check-case-insensitive.py
is my first Python program I am not a great expert in how Python handles
Unicode, but the research I did suggests that it will case fold
according to the Unicode rules and so I am pretty sure that it will
survive real world use.

At the end of the day the hook script's goal is to prevent files being
created on the server which cannot be checked out on the client. I
would be very interested in any examples where it fails to enforce this.
  From my reading of
http://blogs.msdn.com/michkap/archive/2005/01/16/353873.aspx I think it
might be possible in obscure cases. I am afraid I don't know exactly
what he means by the bogus lower case Georgian mapping!

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
Visit http://www.subversionary.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 25 14:49:34 2005

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