Index: subversion/svnadmin/main.c =================================================================== --- subversion/svnadmin/main.c (revision 19395) +++ subversion/svnadmin/main.c (working copy) @@ -974,13 +974,19 @@ struct svnadmin_opt_state *opt_state = baton; svn_repos_t *repos; svn_stream_t *stderr_stream = NULL; + struct recode_write_baton stderr_stream_rwb = { 0 }; svn_revnum_t youngest; /* This whole process is basically just a dump of the repository with no interest in the output. */ SVN_ERR(open_repos(&repos, opt_state->repository_path, pool)); SVN_ERR(svn_fs_youngest_rev(&youngest, svn_repos_fs(repos), pool)); - SVN_ERR(create_stdio_stream(&stderr_stream, apr_file_open_stderr, pool)); + + stderr_stream = svn_stream_create (&stderr_stream_rwb, pool); + stderr_stream_rwb.pool = svn_pool_create(pool); + stderr_stream_rwb.out = stderr; + svn_stream_set_write (stderr_stream, recode_write); + SVN_ERR(svn_repos_dump_fs2(repos, NULL, stderr_stream, 0, youngest, FALSE, FALSE, check_cancel, NULL, pool));