From: Jeff Trawick Date: Tue, 16 May 2000 01:59:07 +0000 (+0000) Subject: mod_include: X-Git-Tag: APACHE_2_0_ALPHA_4~147 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47df20d00a3b3440928c29ab94df0d1baae19c53;p=thirdparty%2Fapache%2Fhttpd.git mod_include: . APR-ize some EBCDIC logic that translates char-by-char . use the buff option BO_WXLATE to store a translation handle instead of the old logic to turn on the B_EBCDIC2ASCII flag git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85222 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index b5e212ca122..b702f599be7 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -99,6 +99,7 @@ #include #endif #endif +#include "util_ebcdic.h" #define STARTING_SEQUENCE "" @@ -107,7 +108,7 @@ #define SIZEFMT_BYTES 0 #define SIZEFMT_KMG 1 #ifdef CHARSET_EBCDIC -#define RAW_ASCII_CHAR(ch) os_toebcdic[(unsigned char)ch] +#define RAW_ASCII_CHAR(ch) ap_xlate_conv_byte(ap_hdrs_from_ascii, (unsigned char)ch) #else /*CHARSET_EBCDIC*/ #define RAW_ASCII_CHAR(ch) (ch) #endif /*CHARSET_EBCDIC*/ @@ -2444,7 +2445,7 @@ static int send_parsed_file(request_rec *r) */ #ifdef CHARSET_EBCDIC /* XXX:@@@ Is the generated/included output ALWAYS in text/ebcdic format? */ - ap_bsetflag(r->connection->client, B_EBCDIC2ASCII, 1); + ap_bsetopt(r->connection->client, BO_WXLATE, &ap_hdrs_to_ascii); #endif send_parsed_content(f, r);