martin 00/01/04 02:20:43
Modified: src/main http_protocol.c
Log:
Another place where we must force EBCDIC conversion to ON
Revision Changes Path
1.285 +7 -0 apache-1.3/src/main/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_protocol.c,v
retrieving revision 1.284
retrieving revision 1.285
diff -u -r1.284 -r1.285
--- http_protocol.c 1999/12/20 17:43:35 1.284
+++ http_protocol.c 2000/01/04 10:20:39 1.285
@@ -1686,6 +1686,9 @@
API_EXPORT(void) ap_finalize_request_protocol(request_rec *r)
{
if (r->chunked && !r->connection->aborted) {
+#ifdef CHARSET_EBCDIC
+ PUSH_EBCDIC_OUTPUTCONVERSION_STATE(r->connection->client, 1);
+#endif
/*
* Turn off chunked encoding --- we can only do this once.
*/
@@ -1697,6 +1700,10 @@
/* If we had footer "headers", we'd send them now */
ap_rputs(CRLF, r);
ap_kill_timeout(r);
+
+#ifdef CHARSET_EBCDIC
+ POP_EBCDIC_OUTPUTCONVERSION_STATE(r->connection->client);
+#endif /*CHARSET_EBCDIC*/
}
}