Ticket #5411: ftp.patch
| File ftp.patch, 0.8 KB (added by oberstet, 18 months ago) |
|---|
-
twisted/topfiles/5411.bugfix
1 Fix bug with FTP directory listing trying to write Unicode data (from filenames) to the TCP transport. -
twisted/protocols/ftp.py
415 415 'group': group[:8], 416 416 'size': size, 417 417 'date': formatDate(time.gmtime(modified)), 418 'name': name }418 'name': name.encode("utf-8")} 419 419 420 420 def sendListResponse(self, name, response): 421 421 self.sendLine(self._formatOneListResponse(name, *response))
