Do we do this other places in our code, or does this introduce a new pattern?
It *does* introduce new "format not a string literal, argument types not checked" warnings at compile-time. -Hyrum On Sun, Aug 14, 2011 at 6:06 PM, <arfre...@apache.org> wrote: > Author: arfrever > Date: Sun Aug 14 23:06:09 2011 > New Revision: 1157682 > > URL: http://svn.apache.org/viewvc?rev=1157682&view=rev > Log: > Follow-up to r1157537: > > * subversion/svn/status.c > (print_status): Include %s in translated messages to support languages, > in which "from" / "to" are postpositions. > > Modified: > subversion/trunk/subversion/svn/status.c > > Modified: subversion/trunk/subversion/svn/status.c > URL: > http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/status.c?rev=1157682&r1=1157681&r2=1157682&view=diff > ============================================================================== > --- subversion/trunk/subversion/svn/status.c (original) > +++ subversion/trunk/subversion/svn/status.c Sun Aug 14 23:06:09 2011 > @@ -268,8 +268,11 @@ print_status(const char *path, > SVN_ERR(svn_dirent_get_absolute(&cwd, "", pool)); > relpath = make_relpath(cwd, status->moved_from_abspath, pool, pool); > relpath = svn_dirent_local_style(relpath, pool); > - moved_from_line = apr_psprintf(pool, "\n > %s %s", > - _("moved from"), relpath); > + moved_from_line = apr_psprintf(pool, > + apr_psprintf(pool, > + "\n > %s", > + _("moved from %s")), > + relpath); > } > > /* Only print an extra moved-to line for the op-root of a move-away. > @@ -285,8 +288,11 @@ print_status(const char *path, > SVN_ERR(svn_dirent_get_absolute(&cwd, "", pool)); > relpath = make_relpath(cwd, status->moved_to_abspath, pool, pool); > relpath = svn_dirent_local_style(relpath, pool); > - moved_to_line = apr_psprintf(pool, "\n > %s %s", > - _("moved to"), relpath); > + moved_to_line = apr_psprintf(pool, > + apr_psprintf(pool, > + "\n > %s", > + _("moved to %s")), > + relpath); > } > > if (detailed) > > > -- uberSVN: Apache Subversion Made Easy http://www.uberSVN.com/