]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Complete the EBCDIC conversion support for XML documents.
authorMartin Kraemer <martin@apache.org>
Tue, 29 Jun 2004 12:13:50 +0000 (12:13 +0000)
committerMartin Kraemer <martin@apache.org>
Tue, 29 Jun 2004 12:13:50 +0000 (12:13 +0000)
With this change, mod_dav works on an EBCDIC machine.

Submitted by: Jean-Frederic Clere <jfclere apache.org>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104075 13f79535-47bb-0310-9956-ffa450edef68

server/util_xml.c

index 069345d310468a0ed1148abaf2161ca68c64b517..2019917c2db9f92a6763facafbcfc8a853675a72 100644 (file)
@@ -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: