From: Martin Kraemer Date: Thu, 30 Aug 2007 10:40:57 +0000 (+0000) Subject: For correct dumping on EBCDIC machines, translate data from ASCII X-Git-Tag: 2.2.6~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7df04cdf4d58d3b7444928b69fa29b0151d2161f;p=thirdparty%2Fapache%2Fhttpd.git For correct dumping on EBCDIC machines, translate data from ASCII git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@571109 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/debug/mod_dumpio.c b/modules/debug/mod_dumpio.c index a0cf22d2e05..f4fdbba0aab 100644 --- a/modules/debug/mod_dumpio.c +++ b/modules/debug/mod_dumpio.c @@ -67,6 +67,9 @@ static void dumpit(ap_filter_t *f, apr_bucket *b) if (nbytes) { obuf = malloc(nbytes+1); /* use pool? */ memcpy(obuf, buf, nbytes); +#if APR_CHARSET_EBCDIC + ap_xlate_proto_from_ascii(obuf, nbytes); +#endif obuf[nbytes] = '\0'; ap_log_error(APLOG_MARK, ptr->loglevel, 0, c->base_server, "mod_dumpio: %s (%s-%s): %s",