From 2f704602a0a8f8d3e22197c7ff83569c56008e13 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 23 Oct 2004 13:58:18 +0000 Subject: [PATCH] - outdated (dropped by arekm) Changed files: subversion-log-xml.patch -> 1.2 --- subversion-log-xml.patch | 69 ---------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 subversion-log-xml.patch diff --git a/subversion-log-xml.patch b/subversion-log-xml.patch deleted file mode 100644 index 6ddcb60..0000000 --- a/subversion-log-xml.patch +++ /dev/null @@ -1,69 +0,0 @@ -Index: subversion/clients/cmdline/log-cmd.c -=================================================================== ---- subversion/clients/cmdline/log-cmd.c (wersja 11180) -+++ subversion/clients/cmdline/log-cmd.c (wersja 11181) -@@ -23,6 +23,7 @@ - /*** Includes. ***/ - - #define APR_WANT_STRFUNC -+#define APR_WANT_STDIO - #include - - #include "svn_wc.h" -@@ -76,7 +77,29 @@ - return count; - } - -+static svn_error_t * -+error_checked_fputs(const char *string, FILE* stream) -+{ -+ /* This function is equal to svn_cmdline_fputs() minus -+ the utf8->local encoding translation */ - -+ /* On POSIX systems, errno will be set on an error in fputs, but this might -+ not be the case on other platforms. We reset errno and only -+ use it if it was set by the below fputs call. Else, we just return -+ a generic error. */ -+ errno = 0; -+ -+ if (fputs (string, stream) == EOF) -+ { -+ if (errno) -+ return svn_error_wrap_apr (errno, _("Write error")); -+ else -+ return svn_error_create (SVN_ERR_IO_WRITE_ERROR, NULL, NULL); -+ } -+ -+ return SVN_NO_ERROR; -+} -+ - /* Baton for log_message_receiver() and log_message_receiver_xml(). */ - struct log_receiver_baton - { -@@ -416,7 +439,7 @@ - /* */ - svn_xml_make_close_tag (&sb, pool, "logentry"); - -- SVN_ERR (svn_cmdline_printf (pool, "%s", sb->data)); -+ SVN_ERR (error_checked_fputs (sb->data, stdout)); - - return SVN_NO_ERROR; - } -@@ -497,7 +520,7 @@ - /* "" */ - svn_xml_make_open_tag (&sb, pool, svn_xml_normal, "log", NULL); - -- SVN_ERR (svn_cmdline_printf (pool, "%s", sb->data)); -+ SVN_ERR (error_checked_fputs (sb->data, stdout)); - } - - SVN_ERR (svn_client_log2 (targets, -@@ -518,7 +541,7 @@ - /* "" */ - svn_xml_make_close_tag (&sb, pool, "log"); - -- SVN_ERR (svn_cmdline_printf (pool, "%s", sb->data)); -+ SVN_ERR (error_checked_fputs (sb->data, stdout)); - } - } - else /* default output format */ -- 2.44.0