summaryrefslogtreecommitdiff
path: root/server/util_xml.c
diff options
context:
space:
mode:
authorMartin Kraemer <martin@apache.org>2004-06-29 12:13:50 +0000
committerMartin Kraemer <martin@apache.org>2004-06-29 12:13:50 +0000
commit5e05d684832a195a3a24ea64b52889f73b46123d (patch)
tree1dfabbb4de362b7da93f18ef0ddfb792fdfc540c /server/util_xml.c
parent361dcd147840274b3a605cb29d6647dc37889fbf (diff)
downloadhttpd-5e05d684832a195a3a24ea64b52889f73b46123d.tar.gz
Complete the EBCDIC conversion support for XML documents.
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
Diffstat (limited to 'server/util_xml.c')
-rw-r--r--server/util_xml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/util_xml.c b/server/util_xml.c
index 069345d310..2019917c2d 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: