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

Re: Files with trailing dots on Windows

From: Branko Čibej <brane_at_xbc.nu>
Date: 2006-02-08 18:13:26 CET

John Peacock wrote:
> 1) drop support for native Win32 support (my favorite); :0
>
Ha ha ha.

> 2) check for illegal filenames [for all platforms] and refuse to add them to the
> repository (or less drastically refuse to check them out with a warning on evil
> platforms);
>
Impossible; you don't know what "all platforms" are.

> 3) admit that using native Win32 Subversion may always have some limitations
> with cross-platform development (cf. renaming files in case only).
>
> Guess which one is likely to meet the greatest approval within the project... ;-)
>
Number 3, of course, unless you count the 4th solution:

4) Teach the svn_path_local_style()/svn_path_internal_style() pair to do
perform reversible mappings of the file name, similar to what Martin
proposed about colons; for example, you could map all "weird" characters
to some visually equivalent Unicode code point that happens not to
confuse the Windows API. That way our internal file names would always
be correct, and the local ones would always be acceptable to Windows.

I think that actually wouldn't be all that hard to do, assuming we can
find a sensible set of mapping rules.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 8 18:17:39 2006

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.