[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-01-20 23:18:12 CET

von L├Âwis Martin wrote:
> I would like subversion to support files with trailing dots on Windows.
> I mentioned the issue on #svn, and darix suggested I report it here.
>
> One use case for that is
>
> http://svn.python.org/projects/python/trunk/Mac/IDE%20scripts/
>
> where "Insert folder name..." has trailing dots. On checking out the
> tree, subversion creates a file "Insert folder name" instead, and
> subsequently reports that the tree was modified (with the original file
> missing). svn revert will try to create the missing file, but fail
> just as the original checkout failed.
>
> I know that it is not subversion which drops the trailing dots, but
> CreateFile.
>
> However, there are solutions/work-arounds available, which I think
> subversion should use.
>
> For this specific problem, escaping the path name with \\?\ would
> help. To see how this works, try running
>
> notepad.exe \\?\c:\foo.txt...
>
> This will happily create a file with trailing dots in ist name;
> Microsoft even documents it in the Win32 API (somewhere).
>
This will
a) Only work on Win NT and later (not Win9x) -- not that I care about
those platforms, and
b) APR already does that with file names on Windows, so it doesn't
always seem to help.

Anyway, this isn't the only kind of file name that won't work on
Windows; file names with colons or backslashes in them (which can be
created on Unix) will also break the Windows client.

> May I file a bug report for that issue?
>
Our position in similar situations in the past is that it's not
Subversion's job to support file names that the native OS can't handle.

> Regards,
> Martin
>
> P.S. If you were interested in supporting case-sensitive file names
> also (i.e. having two files in the same directory that only differ
> in case): that would be possible through FILE_FLAGS_POSIX_SEMANTICS
> for CreateFile - unfortunately, you would have to use NtDeleteFile
> for removal...
>
We know that, but we also know that it would be a pretty pointless thing
to do, because other apps couldn't use such files.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 20 23:17:46 2006

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