From 47df20d00a3b3440928c29ab94df0d1baae19c53 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Tue, 16 May 2000 01:59:07 +0000 Subject: [PATCH] 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 --- modules/filters/mod_include.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index b5e212ca12..b702f599be 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);