You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Marcus Comstedt <ma...@mc.pp.se> on 2002/08/20 13:32:49 UTC
[PATCH] Bugfix: UTF-8 string printed to stdout in info-cmd.c
Added a missing UTF-8 conversion in the command line client.
* subversion/clients/cmdline/info-cmd.c
(svn_cl__info): convert "target" to native character encoding
before printing it.
Index: subversion/clients/cmdline/info-cmd.c
===================================================================
--- subversion/clients/cmdline/info-cmd.c
+++ subversion/clients/cmdline/info-cmd.c Tue Aug 20 15:24:11
2002
@@ -248,7 +248,12 @@
if (! entry)
{
/* Print non-versioned message and extra newline
separator. */
- printf ("%s: (Not a versioned resource)\n\n", target);
+
+ const char *native;
+ /* Get a non-UTF8 version of the target. */
+ SVN_ERR (svn_utf_cstring_from_utf8 (&native, target, pool));
+
+ printf ("%s: (Not a versioned resource)\n\n", native);
continue;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Bugfix: UTF-8 string printed to stdout in info-cmd.c
Posted by cm...@collab.net.
Marcus Comstedt <ma...@mc.pp.se> writes:
> Added a missing UTF-8 conversion in the command line client.
>
> * subversion/clients/cmdline/info-cmd.c
> (svn_cl__info): convert "target" to native character encoding
> before printing it.
Am applying this now...
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org