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

svn_path_internal_style() is broken

From: Ich Selbst <ichselbst_at_gmx.ch>
Date: 2002-11-19 20:24:56 CET

could someone please fix that?
right now it converts e.g. "C:\test\project" to "" (empty string).
and svn_path_local_style() suffers the same symptomps.

Steve

that way it works:

const char *
svn_path_internal_style (const char *path, apr_pool_t *pool)
{
if ('/' != SVN_PATH_LOCAL_SEPARATOR)
{
char *p;
char *q;
/* Convert all local-style separators to the canonical ones. */
q = apr_pstrdup(pool, path);
for (p = q; *p != '\0'; ++p)
{
if (*p == SVN_PATH_LOCAL_SEPARATOR)
*p = '/';
}
return svn_path_canonicalize (q, pool);
}
return svn_path_canonicalize (path, pool);
/* FIXME: Should also remove trailing /.'s, if the style says so. */
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 19 20:26:09 2002

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.