[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: Martin Hauner <martin.hauner_at_gmx.net>
Date: 2007-02-03 13:02:51 CET

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
Received on Sat Feb 3 13:12:44 2007

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