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

Re: SVN and PRN and CON files on Windows platform

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Mon, 24 Sep 2012 06:54:28 -0400

On Mon, Sep 24, 2012 at 4:21 AM, Ryan Schmidt
<subversion-2012c_at_ryandesign.com> wrote:
>
> On Sep 24, 2012, at 03:17, Andreas Tscharner wrote:
>>
>>> It's not a bug in Subversion; it's a "feature" (or at least a
>>> reality that's unlikely to change) of the Windows operating
>>> system. On Windows, you may not create a file whose name is
>>> "PRN", with any extension.
>>
>> It would be a great benefit for the user if SVN warns about that fact during "svn add"...
>
> Subversion can't really know if you care about Windows compatibility. Many people don't.
>
> What you can do though, if you care about Windows compatibility, is to write a pre-commit hook script that prevents the addition of files with those names. It won't alert you when you "svn add", but it will prevent the "svn commit".

Don't forget to check for both cases and mixes of case, such as 'pRn".
Received on 2012-09-24 12:55:01 CEST

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.