httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_include.c
Date Tue, 16 May 2000 01:59:08 GMT
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);
  
  
  

Mime
View raw message