You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2016/12/22 12:48:07 UTC
svn commit: r1775642 - /subversion/trunk/subversion/tests/svn_test_main.c
Author: stefan2
Date: Thu Dec 22 12:48:07 2016
New Revision: 1775642
URL: http://svn.apache.org/viewvc?rev=1775642&view=rev
Log:
Make our C tests slightly more efficient.
* subversion/tests/svn_test_main.c
(svn_test_main): All paths in I/O functions go through UTF8 conversion.
For best performance, initialize our UTF infrastructure.
Modified:
subversion/trunk/subversion/tests/svn_test_main.c
Modified: subversion/trunk/subversion/tests/svn_test_main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/svn_test_main.c?rev=1775642&r1=1775641&r2=1775642&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/svn_test_main.c (original)
+++ subversion/trunk/subversion/tests/svn_test_main.c Thu Dec 22 12:48:07 2016
@@ -891,6 +891,10 @@ svn_test_main(int argc, const char *argv
if (err)
return svn_cmdline_handle_exit_error(err, pool, opts.prog_name);
+
+ /* For efficient UTF8 handling (e.g. used by our file I/O routines). */
+ svn_utf_initialize2(FALSE, pool);
+
while (1)
{
const char *opt_arg;