]> granicus.if.org Git - apache/commitdiff
For correct dumping, translate data from ASCII
authorMartin Kraemer <martin@apache.org>
Wed, 29 Aug 2007 11:15:07 +0000 (11:15 +0000)
committerMartin Kraemer <martin@apache.org>
Wed, 29 Aug 2007 11:15:07 +0000 (11:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@570753 13f79535-47bb-0310-9956-ffa450edef68

modules/debugging/mod_dumpio.c

index a0cf22d2e05df575a4bb8f14107dd07d011280ab..f4fdbba0aab2a0679e5857b7ca366cbd54ee1483 100644 (file)
@@ -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",