svn commit: r1925887 - /subversion/branches/utf8-cmdline-prototype/subversion/svnadmin/svnadmin.c

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Tue May 27 22:29:47 2025
New Revision: 1925887

URL: http://svn.apache.org/viewvc?rev=1925887&view=rev
Log:
On the 'utf8-cmdline-prototype' branch: follow-up to r1925879: translate
strings without converting encoding in svnadmin.

* subversion/svnadmin/svnadmin.c
  (set_revprop): Invoke svn_subst_translate_string2() passing "UTF-8" as
   encoding; it identifies UTF-8 encoding, and handled by the function,
   so it ignores the actual conversion.

Modified:
    subversion/branches/utf8-cmdline-prototype/subversion/svnadmin/svnadmin.c

Modified: subversion/branches/utf8-cmdline-prototype/subversion/svnadmin/svnadmin.c
URL: http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/svnadmin/svnadmin.c?rev=1925887&r1=1925886&r2=1925887&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/svnadmin/svnadmin.c (original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/svnadmin/svnadmin.c Tue May 27 22:29:47 2025
@@ -2066,7 +2066,7 @@ set_revprop(const char *prop_name, const
       prop_value->len = file_contents->len;
 
       SVN_ERR(svn_subst_translate_string2(&prop_value, NULL, NULL, prop_value,
-                                          NULL, FALSE, pool, pool));
+                                          "UTF-8", FALSE, pool, pool));
     }
   else
     {
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.