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

RE: svn commit: r35746 - in trunk/subversion: include libsvn_subr

From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Mon, 9 Feb 2009 19:12:49 +0100

> -----Original Message-----
> From: Greg Stein [mailto:gstein_at_gmail.com]
> Sent: Monday, February 09, 2009 3:22 PM
> To: dev_at_subversion.tigris.org
> Subject: Re: svn commit: r35746 - in trunk/subversion: include
> libsvn_subr
>
> On Sun, Feb 8, 2009 at 16:15, Bert Huijben <rhuijben_at_sharpsvn.net>
> wrote:
> > Author: rhuijben
> > Date: Sun Feb 8 16:15:58 2009
> > New Revision: 35746
> >
> > Log:
> > Following up on r35743, fix whitespace and move encoding comment to
> > header file.
> >
> > * subversion/include/svn_io.h
> > (svn_io_run_diff, svn_io_run_diff3_2):
> > Document that diff_cmd must be cstring encoded.
>
> Woah. That is dangerous for our public APIs. All of our public APIs
> are supposed to be UTF-8. That's the primary reason for all the
> svn_io_* wrappers around APR: make them all UTF-8.

I just documented the actual implementation. (Didn't change a letter in that
function).

I was just very surprised that it converted the passed arguments to utf8
before passing it to some other routines.. then converted it back and
finally passed it back to apr.

(And I agree that this entire api should be rev'ed to make it use apr)

> Second, "cstring" doesn't tell me anything. Our utf-8-encoded strings
> are cstrings, too. You mean something more like "native, local-style"
> or something like that. I've seen that in headers before.
>
> But I still think it's bad precedent to expose this in the API.

I think it was officially exposed with 1.0 :(

        Bert
>
> >...
>
> Cheers,
> -g
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageI
> d=1129252

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1129867
Received on 2009-02-09 19:13:12 CET

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.