[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: von Löwis Martin <Martin.vonLoewis_at_hpi.uni-potsdam.de>
Date: 2006-02-06 18:53:49 CET

> Wouldn't it be much, much simpler if Subversion just didn't
> check the files out?

That would work for me as well.

> Seems like the implementation is OK straight forward.

Unfortunately, it isn't: there is no easy way to find out whether
a system supports a certain filename. You would have to hard-code
rules on a per-system basis.

> The rules are simple too. When checking out files on Windows:
> - Skip files ending in trailing dots
> - Skip files with names containing \ / : * ? " < > |
> - Skip files whose name clashes on a case insensitive
> filesystem (just skip both/all files to avoid any mistakes).

These rules are incomplete:
- the names CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5,
  COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6,
  LPT7, LPT8, and LPT9 are reserved, as are filenames that
  extend one of these (such as prn.txt). Case doesn't matter.
  On Windows NT, CLOCK$ is also reserved.
- also skip file names with leading or trailing spaces.

Apart from that, I think this strategy would work for Win32,
and my specific problem would be solved if there was a Win32-only
solution.

For a complete specification, see "Naming a File", in

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp

Regards,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 6 18:56:44 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.