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

Re: svn commit: r1511603 - /subversion/trunk/subversion/svnadmin/svnadmin.c

From: Ivan Zhakov <ivan_at_visualsvn.com>
Date: Thu, 8 Aug 2013 15:15:56 +0400

On Thu, Aug 8, 2013 at 11:24 AM, <danielsh_at_apache.org> wrote:
> Author: danielsh
> Date: Thu Aug 8 07:24:25 2013
> New Revision: 1511603
>
> URL: http://svn.apache.org/r1511603
> Log:
> Follow-up to r1506966:
>
> * subversion/svnadmin/svnadmin.c
> (repos_notify_handler): Don't use the length of an English string when
> printing a localized string.
>
> Modified:
> subversion/trunk/subversion/svnadmin/svnadmin.c
>
> Modified: subversion/trunk/subversion/svnadmin/svnadmin.c
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnadmin/svnadmin.c?rev=1511603&r1=1511602&r2=1511603&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/svnadmin/svnadmin.c (original)
> +++ subversion/trunk/subversion/svnadmin/svnadmin.c Thu Aug 8 07:24:25 2013
> @@ -925,8 +925,8 @@ repos_notify_handler(void *baton,
> return;
>
> case svn_repos_notify_load_node_done:
> - len = 7;
> - svn_error_clear(svn_stream_write(feedback_stream, _(" done.\n"), &len));
> + svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
> + "%s", _(" done.\n")));
You may use svn_stream_puts(feedback_stream, _(" done.\n")) in this
particular case.

-- 
Ivan Zhakov
CTO | VisualSVN | http://www.visualsvn.com
Received on 2013-08-08 13:16:50 CEST

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