You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/05/16 03:59:08 UTC
cvs commit: apache-2.0/src/modules/standard mod_include.c
trawick 00/05/15 18:59:08
Modified: src/modules/standard mod_include.c
Log:
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
Revision Changes Path
1.28 +3 -2 apache-2.0/src/modules/standard/mod_include.c
Index: mod_include.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_include.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- mod_include.c 2000/04/14 15:59:09 1.27
+++ mod_include.c 2000/05/16 01:59:07 1.28
@@ -99,6 +99,7 @@
#include <pwd.h>
#endif
#endif
+#include "util_ebcdic.h"
#define STARTING_SEQUENCE "<!--#"
#define ENDING_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 @@
*/
#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);