Author: rinrab
Date: Mon May 26 15:03:59 2025
New Revision: 1925828
URL: http://svn.apache.org/viewvc?rev=1925828&view=rev
Log:
On the 'utf8-cmdline-prototype' branch: do not convert value of the
opt_compatible_version in parse_compatible_version(), but rely on prepared
utf8_opt_arg.
* subversion/svn/svn.c
(parse_compatible_version): Accept utf8-ized argument.
(sub_main::opt_compatible_version): Pass utf8_opt_arg instead of opt_arg
to parse_compatible_version().
Modified:
subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c
Modified: subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c
URL: http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c?rev=1925828&r1=1925827&r2=1925828&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c (original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/svn/svn.c Mon May 26 15:03:59 2025
@@ -2140,10 +2140,9 @@ add_commands(const svn_opt_subcommand_de
*/
static svn_error_t *
parse_compatible_version(svn_cl__opt_state_t* opt_state,
- const char *opt_arg,
+ const char *utf8_opt_arg,
apr_pool_t *result_pool)
{
- const char *utf8_opt_arg;
svn_version_t *target;
const svn_version_t *oldest = svn_client_oldest_wc_version(result_pool);
@@ -2156,7 +2155,6 @@ parse_compatible_version(svn_cl__opt_sta
oldest->major, oldest->minor, 0));
/* Parse the requested version. */
- SVN_ERR(svn_utf_cstring_to_utf8(&utf8_opt_arg, opt_arg, result_pool));
SVN_ERR(svn_version__parse_version_string(&target, utf8_opt_arg,
result_pool));
/* Quietly ignore 'patch' and 'tag' fields. */
@@ -2742,7 +2740,7 @@ sub_main(int *exit_code,
SVN_ERR(viewspec_from_word(&opt_state.viewspec, utf8_opt_arg));
break;
case opt_compatible_version:
- SVN_ERR(parse_compatible_version(&opt_state, opt_arg, pool));
+ SVN_ERR(parse_compatible_version(&opt_state, utf8_opt_arg, pool));
break;
case opt_store_pristine:
opt_state.store_pristine = svn_tristate__from_word(utf8_opt_arg);
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.