Nicolas, Not that I'm the one to give permission whether to integrate things or not, but just to let you know I don't even have svn installed so I won't do it. At least not for a while... BTW, if there are some cherrypy developers in this mailing list, the CherryPy function that handles file uploads DOES also has the same issue. I'm not subscribe to CherryPy dev group thus the cross posting. 24 def read_lines_to_outerboundary(self): 25 """Internal: read lines until outerboundary.""" 26 next = "--" + self.outerboundary 27 last = next + "--" 28 delim = "" 29 last_line_lfend = True 30 while 1: 31 line = self.fp.readline(1<<16) 32 if not line: 33 self.done = -1 34 break 35 if line[:2] == "--" and last_line_lfend: 36 strippedline = line.strip() 37 if strippedline == next: 38 break 39 if strippedline == last: 40 self.done = 1 41 break 42 odelim = delim 43 if line[-2:] == "\r\n": 44 delim = "\r\n" 45 line = line[:-2] 46 last_line_lfend = True 47 elif line[-1] == "\n": 48 delim = "\n" 49 line = line[:-1] 50 last_line_lfend = True 51 else: 52 delim = "" 53 last_line_lfend = False 54 self.__write(odelim + line) /amn On Nov 6, 2005, at 4:20 PM, Nicolas Lehuen wrote: OK, it looks like Alexis' fix solves the problem with ugh.pdf without breaking the other unit tests. So I think we can safely integrate his patch. Shall I do it ? |
- mod_python.util.StorageField.read_to_boundary ... Alexis Marrero
- Re: mod_python.util.StorageField.read_to_... Jim Gallacher
- Re: mod_python.util.StorageField.read_to_... Jim Gallacher
- Re: mod_python.util.StorageField.read... Alexis Marrero
- Re: mod_python.util.StorageField.... Nicolas Lehuen
- Re: mod_python.util.StorageFi... Nicolas Lehuen
- Re: mod_python.util.Stor... Alexis Marrero
- Re: mod_python.util.Stor... Gregory (Grisha) Trubetskoy
- Re: mod_python.util.... Jim Gallacher
- Re: mod_python.u... Nicolas Lehuen
- Re: mod_python.u... Jim Gallacher
- Re: mod_python.u... Jim Gallacher
- Re: mod_python.u... Jim Gallacher
- Re: mod_python.u... Jim Gallacher
- Re: mod_python.u... Alexis Marrero
- Re: mod_python.u... Mike Looijmans
- Re: mod_python.u... Mike Looijmans