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

Re: [RFC] Paths API (svn_dirent_uri.h) - improvements

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 11 Nov 2009 18:02:01 +0100

On Wed, Nov 11, 2009 at 05:46:21PM +0100, Branko Cibej wrote:
> Julian Foad wrote:
> > Stefan Sperling wrote:
> >
> >> Yes, but there's no function that deals with the case where you get
> >> a Windows path on unix and need to normalise it to internal style.
> >>
> >> I don't know if dirent_uri should provide that. But I had to cook
> >> a custom hack in libsvn_client/patch.c to deal with this case.
> >>
> >
> > Good point: it sounds like it would be useful for the lib to provide
> > functions for handling Windows paths even when running on Unix.
> >
>
> No wait -- when do you ever have to deal with Windows paths on Unix?
> where do they come from? Those are not valid filesystem paths on the OS
> where your client is running -- so what's the use case?

I've briefly hinted at it above:
You get a patch someone created on Windows, so it contains paths using
backslashes as separators, and you want 'svn patch' to apply it to
a working copy you have on a unix machine.

Stefan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2416641
Received on 2009-11-11 18:02:33 CET

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