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

Re: File names encoding

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-02-10 01:47:33 CET

On Sat, 03 Feb 2007, Martin Hauner wrote:

> Hi,
> Daniel Rall wrote:
> >>MONTEUX Eric wrote:
> >>>I am currently developping a subversion client in C++.
> >>>I have a problem with blank characters existing in my file names.
> >>>The svn api says the url of such files is malformed.
> >>>
> >[..]
> >
> >From svn_path.h:
> >
> >/** Return a URI-encoded copy of @a path, allocated in @a pool. */
> >const char *svn_path_uri_encode(const char *path, apr_pool_t *pool);
> I had a similar problem in subcommander and found that there is code
> hidden in svn_opt_args_to_target_array2 (which is duplicated in other
> svn tools) to prepare a string for an svn api call (path or url).
> I created a patch last november (thread "preparing a path or url for
> an svn api call....") which moved this code to a public api function.
> Unfortunately, the patch was never reviewed and ended up in the issue
> tracker as issue 2676.

+1, this looks like a good idea to me.

  • application/pgp-signature attachment: stored
Received on Sat Feb 10 01:48:11 2007

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