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

Re: Asking for documentation

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-11-02 23:27:35 CET

Philipp Marek <philipp@marek.priv.at> writes:
> I'd like to ask for a little bit of documentation.
>
> In svn_ra.h are some functions and callbacks declared, that get (char*) as
> arguments. But it is not clear from context whether these are getting called
> with UTF-8 strings or locale encoded data.
>
> Most of the path arguments (even the lock_tokens) can be assumed to be UTF-8;
> but is that true of the author, commit date and so on, too?

Yes, I would assume so. If not, it's probably an unintentional bug,
as UTF-8 is The Standard in Subversion's APIs.

> I'd like to ask for a little clarification, possibly just a
>
> /* Every (char*) below is UTF8, except where explicitly noted. */
>
> at the top of the file.

That seems reasonable, yep. (Could you supply a patch?)

> And furthermore, is it true that all URLs passed therein are used as-is? Or
> must they already be encoded in some form?

I assume they're just URI-encoded.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 3 00:20:47 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.