From: Martin Kraemer Date: Tue, 29 Jun 2004 12:13:50 +0000 (+0000) Subject: Complete the EBCDIC conversion support for XML documents. X-Git-Tag: pre_ajp_proxy~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e05d684832a195a3a24ea64b52889f73b46123d;p=thirdparty%2Fapache%2Fhttpd.git Complete the EBCDIC conversion support for XML documents. With this change, mod_dav works on an EBCDIC machine. Submitted by: Jean-Frederic Clere git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104075 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_xml.c b/server/util_xml.c index 069345d3104..2019917c2db 100644 --- a/server/util_xml.c +++ b/server/util_xml.c @@ -20,6 +20,7 @@ #include "http_log.h" #include "http_core.h" +#include "util_charset.h" #include "util_xml.h" @@ -110,6 +111,9 @@ AP_DECLARE(int) ap_xml_parse_input(request_rec * r, apr_xml_doc **pdoc) return HTTP_BAD_REQUEST; } +#if APR_CHARSET_EBCDIC + apr_xml_parser_convert_doc(r->pool, *pdoc, ap_hdrs_from_ascii); +#endif return OK; parser_error: