svn commit: r1930392 - in subversion/branches/utf8-cmdline-prototype: . subversion/svnversion

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <176530138182.2801958.3933471226280483376@svn02-us-east.apache.org>
Author: rinrab
Date: Tue Dec  9 17:29:41 2025
New Revision: 1930392

Log:
On the 'utf8-cmdline-prototype' branch: UTF8-ize svnversion program.

* subversion/svnversion/svnversion.c
  (includes): Remove svn_utf.h because we no longer use it.
  (sub_main): Directly convert argv to UTF8 and remove all following
  convertions.

* BRANCH-README.md: Update status.

Modified:
   subversion/branches/utf8-cmdline-prototype/BRANCH-README.md
   subversion/branches/utf8-cmdline-prototype/subversion/svnversion/svnversion.c

Modified: subversion/branches/utf8-cmdline-prototype/BRANCH-README.md
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/BRANCH-README.md	Tue Dec  9 17:17:58 2025	(r1930391)
+++ subversion/branches/utf8-cmdline-prototype/BRANCH-README.md	Tue Dec  9 17:29:41 2025	(r1930392)
@@ -11,7 +11,7 @@ svnmucc                      | UTF8-ized
 svnrdump                     | UTF8-ized
 svnserve                     | UTF8-ized
 svnsync                      | UTF8-ized
-svnversion                   | ASCII
+svnversion                   | UTF8-ized
 svn                          | UTF8-ized
 svn-mergeinfo-normalizer     | ASCII
 svnconflict                  | ASCII

Modified: subversion/branches/utf8-cmdline-prototype/subversion/svnversion/svnversion.c
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/svnversion/svnversion.c	Tue Dec  9 17:17:58 2025	(r1930391)
+++ subversion/branches/utf8-cmdline-prototype/subversion/svnversion/svnversion.c	Tue Dec  9 17:29:41 2025	(r1930392)
@@ -23,7 +23,6 @@
 #include "svn_dirent_uri.h"
 #include "svn_pools.h"
 #include "svn_wc.h"
-#include "svn_utf.h"
 #include "svn_opt.h"
 #include "svn_version.h"
 
@@ -154,7 +153,7 @@ sub_main(int *exit_code,
   /* Check library versions */
   SVN_ERR(check_lib_versions());
 
-  SVN_ERR(svn_cmdline__get_cstring_argv(&argv, argc, cmdline_argv, pool));
+  SVN_ERR(svn_cmdline__get_utf8_argv(&argv, argc, cmdline_argv, pool));
 
 #if defined(WIN32) || defined(__CYGWIN__)
   /* Set the working copy administrative directory name. */
@@ -217,16 +216,17 @@ sub_main(int *exit_code,
       return SVN_NO_ERROR;
     }
 
-  SVN_ERR(svn_utf_cstring_to_utf8(&wc_path,
-                                  (os->ind < argc) ? os->argv[os->ind] : ".",
-                                  pool));
+  if (os->ind < argc)
+    wc_path = os->argv[os->ind];
+  else
+    wc_path = ".";
 
   SVN_ERR(svn_opt__arg_canonicalize_path(&wc_path, wc_path, pool));
   SVN_ERR(svn_dirent_get_absolute(&local_abspath, wc_path, pool));
   SVN_ERR(svn_wc_context_create(&wc_ctx, NULL, pool, pool));
 
   if (os->ind+1 < argc)
-    SVN_ERR(svn_utf_cstring_to_utf8(&trail_url, os->argv[os->ind+1], pool));
+    trail_url = os->argv[os->ind+1];
   else
     trail_url = NULL;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.