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/main util.c
Date Tue, 16 May 2000 01:43:47 GMT
trawick     00/05/15 18:43:47

  Modified:    src/main util.c
  Log:
  APR-ize some EBCDIC logic which handles conversion between
  characters and hex digits
  
  Revision  Changes    Path
  1.43      +3 -2      apache-2.0/src/main/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/util.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- util.c	2000/05/10 19:07:42	1.42
  +++ util.c	2000/05/16 01:43:46	1.43
  @@ -78,6 +78,7 @@
   #include "http_log.h"
   #include "http_protocol.h"
   #include "http_config.h"
  +#include "util_ebcdic.h"
   
   #if defined(SUNOS4)
   /* stdio.h has been read in ap_config.h already. Add missing prototypes here: */
  @@ -1451,7 +1452,7 @@
       xstr[2]=what[0];
       xstr[3]=what[1];
       xstr[4]='\0';
  -    digit = os_toebcdic[0xFF & strtol(xstr, NULL, 16)];
  +    digit = ap_xlate_conv_byte(ap_hdrs_from_ascii, 0xFF & strtol(xstr, NULL, 16));
   #endif /*CHARSET_EBCDIC*/
       return (digit);
   }
  @@ -1529,7 +1530,7 @@
   static ap_inline unsigned char *c2x(unsigned what, unsigned char *where)
   {
   #ifdef CHARSET_EBCDIC
  -    what = os_toascii[what];
  +    what = ap_xlate_conv_byte(ap_hdrs_to_ascii, (unsigned char)what);
   #endif /*CHARSET_EBCDIC*/
       *where++ = '%';
       *where++ = c2x_table[what >> 4];
  
  
  

Mime
View raw message