Re: mod_python, unicode, utf-8, latin1

2006-08-11 Thread Earle Ady
Graham, Thanks I didn't realize I had actually sent this one to the python- dev list by mistake. I will go ahead and get it over to the right list now. I am also running 3.2.9 with two minor modifications (MySQL Sessions, and a try: except: around a split in util.py to fix a bug with Flas

Re: mod_python, unicode, utf-8, latin1

2006-08-11 Thread Graham Dumpleton
For future reference, a general question like this is better posted to the mod_python user mailing list and not the developer mailing list as it isn't related to internal development of mod_python. There are also a lot more people on the user mailing list with much more diverse knowledge and t

mod_python, unicode, utf-8, latin1

2006-08-11 Thread Earle Ady
Aloha! I've done some searching online regarding character encoding and UTF-8 support within mod_python, but haven't been able to get the proper functionality out of mod_python. Here's the situation: I have changed my site.py in Python 2.4.3 to use "utf-8" as the default encoding. I ha

Re: memory leak in request.readline()

2006-08-11 Thread Jim Gallacher
I ran my baseline test with 500k requests, and got the following: (Note that all the figures will have an error of +/- 0.1) baseline 500k requests 1.7% So it would seem that there is not a specific problem in readline, or my test case is messed up. FYI here are my 2 handlers: def base

Re: memory leak in request.readline()

2006-08-11 Thread Jim Gallacher
I'll have some time to investigate this over the next couple of days. I ran my leaktest script for FieldStorage and readline, and FieldStorage certainly still leaks, but I'm not so sure about readline itself. baseline 1k requests1.2% readline500k requests1.6% fieldstorage

Re: memory leak in request.readline()

2006-08-11 Thread Alexis Marrero
I noticed that lines 789-793 (in the original file, $Id: requestobject.c 420297) should be moved up to line 780, 765 if (self->rbuff_pos < self->rbuff_len) { 766 767 /* if yes, process that first */ 768 while (self->rbuff_pos < self->rbuff_len) { 769