*** mod_pyapache.c.orig Sun Oct 3 23:51:07 1999 --- mod_pyapache.c Tue Oct 5 15:24:21 1999 *************** *** 871,878 **** --- 871,901 ---- if (size) { + #ifdef RUSSIAN_APACHE + unsigned char *newbuf,*p; + int newlen=0; + #endif Py_BEGIN_ALLOW_THREADS + #ifdef RUSSIAN_APACHE + if (ra_charset_active(self->r)) + { + ra_data_server2client(self->r, str, size, &newbuf, &newlen); + p=newbuf; + while(newlen > 0) + { + put = ap_bwrite(self->r->connection->client, p, newlen); + if(put<=0) goto RECODE_DONE; + newlen-=put; + p+=put; + } + put = size; + } + else + put = ap_bwrite (self->r->connection->client, str, size); + RECODE_DONE:; + #else put = ap_bwrite (self->r->connection->client, str, size); + #endif Py_END_ALLOW_THREADS if (put != size)