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

Re: perl swig bindings: status on "."

From: Nik Clayton <nik_at_ngo.org.uk>
Date: 2007-01-24 11:00:24 CET

Eric,

Miller, Eric wrote:
> Since we have some guys looking at the perl bindings, here is a simple one:
>
> When svn_path_basename is called during a svn_client_status call it can
> barf on ‘.’ and core dumps the interpreter.
>
> perl: subversion/libsvn_subr/path.c:377: svn_path_basename: Assertion
> `is_canonical(path, len)' failed.
>
> As outlined in past discussions I found, the code fails because the
> canonical version of ‘.’ is ‘’ (empty string) and for some reason that
> path is not getting canonicalized before being passed.
>
> The simple thing to do would be to map ‘.’ to ‘’ before
> svn_client_status (or status2) is called, since changing the api
> directly seems to be a source of contention (at least it was 2 years ago
> J ).

Do you have a (failing) test that demonstrates this? If you send it to me
(or create an issue with it) I'll put it in the branch we're using for Perl
bindings improvements and work on fixing it.

Cheers,

N

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 24 11:01:16 2007

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.