[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Bugfix: UTF-8 string printed to stdout in info-cmd.c

From: Marcus Comstedt <marcus_at_mc.pp.se>
Date: 2002-08-20 15:32:49 CEST

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
Received on Tue Aug 20 15:43:13 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.