Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 47805 invoked from network); 30 Aug 2007 15:29:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 15:29:51 -0000 Received: (qmail 10757 invoked by uid 500); 30 Aug 2007 15:29:46 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 10715 invoked by uid 500); 30 Aug 2007 15:29:46 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 10704 invoked by uid 99); 30 Aug 2007 15:29:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 08:29:46 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 15:30:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 492F71A9832; Thu, 30 Aug 2007 08:29:28 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r571209 - /httpd/httpd/branches/2.2.x/modules/proxy/ajp_header.c Date: Thu, 30 Aug 2007 15:29:28 -0000 To: cvs@httpd.apache.org From: martin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070830152928.492F71A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: martin Date: Thu Aug 30 08:29:27 2007 New Revision: 571209 URL: http://svn.apache.org/viewvc?rev=571209&view=rev Log: Convert just the message text to EBCDIC, and not the (already EBCDIC) status code Modified: httpd/httpd/branches/2.2.x/modules/proxy/ajp_header.c Modified: httpd/httpd/branches/2.2.x/modules/proxy/ajp_header.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/proxy/ajp_header.c?rev=571209&r1=571208&r2=571209&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/modules/proxy/ajp_header.c (original) +++ httpd/httpd/branches/2.2.x/modules/proxy/ajp_header.c Thu Aug 30 08:29:27 2007 @@ -473,10 +473,11 @@ rc = ajp_msg_get_string(msg, &ptr); if (rc == APR_SUCCESS) { - r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr); -#if defined(AS400) || defined(_OSD_POSIX) - ap_xlate_proto_from_ascii(r->status_line, strlen(r->status_line)); +#if defined(AS400) || defined(_OSD_POSIX) /* EBCDIC platforms */ + ptr = apr_pstrdup(r->pool, ptr); + ap_xlate_proto_from_ascii(ptr, strlen(ptr)); #endif + r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr); } else { r->status_line = NULL; }