svn commit: r1926786 - /subversion/branches/utf8-cmdline-prototype/subversion/svnlook/svnlook.c

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Fri Jun 27 22:02:16 2025
New Revision: 1926786

URL: http://svn.apache.org/viewvc?rev=1926786&view=rev
Log:
* subversion/svnlook/svnlook.c
  (sub_main): Convert value of `--diff-cmd` option back to cstring, since
   Subversion client will convert it to UTF-8 later, meaning it expects this
   option to be raw.

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

Modified: subversion/branches/utf8-cmdline-prototype/subversion/svnlook/svnlook.c
URL: http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/svnlook/svnlook.c?rev=1926786&r1=1926785&r2=1926786&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/svnlook/svnlook.c (original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/svnlook/svnlook.c Fri Jun 27 22:02:16 2025
@@ -2626,7 +2626,8 @@ sub_main(int *exit_code,
           break;
 
         case svnlook__diff_cmd:
-          opt_state.diff_cmd = apr_pstrdup(pool, utf8_opt_arg);
+          SVN_ERR(svn_utf_cstring_from_utf8(opt_state.diff_cmd, utf8_opt_arg,
+                                            pool));
           break;
 
         case svnlook__show_inherited_props:
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.