You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Foad <ju...@btopenworld.com> on 2005/01/26 00:20:53 UTC
[PATCH] Fix encoding of "svn list --xml" [was: svn commit: r12837
...]
Peter N. Lundblad wrote:
> This will convert UTF8->console encoding, which we don't want in this
> case. See error_checked_fputs in log-cmd.c.
[[[
Fix the encoding of XML output from "svn list --xml": output it as UTF-8.
* subversion/clients/cmdline/log-cmd.c
(error_checked_fputs): Extracted and made semi-public with svn_cl__ prefix.
(log_message_receiver_xml, svn_cl__log): Adjust calls accordingly.
* subversion/clients/cmdline/cl.h
* subversion/clients/cmdline/util.c
(svn_cl__error_checked_fputs): New; was log-cmd.c::error_checked_fputs.
* subversion/clients/cmdline/ls-cmd.c
(print_header_xml, print_footer_xml): New helper functions, for tidiness.
(print_dirents_xml, svn_cl__ls): Avoid converting UTF-8 to native encoding
when writing XML output.
]]]
- Julian