You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Martin Hauner <ma...@gmx.net> on 2007/02/03 12:02:51 UTC
Re: File names encoding
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.
--
Martin
Subcommander 1.2.2 - http://subcommander.tigris.org
a cross platform Win32/Unix/MacOSX subversion GUI client & diff/merge tool.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: File names encoding
Posted by Daniel Rall <dl...@collab.net>.
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.