[issue1248] ftplib needs a rewrite to use bytes/buffers

STINNER Victor report at bugs.python.org
Wed Oct 22 00:18:27 CEST 2008


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Function result type should be the same of the connection is in text 
mode or binary mode. As far as I remember, the text mode converts the 
newline byte sequence, not the charset. A text file could be stored as 
latin-1, utf-8, koi-8 or anything else. Am I wrong?

ftplib should use byte strings (as I did for POP3, IMAP4 or some other 
libraries) because the FTP protocol doesn't send the charset.

----------
nosy: +haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1248>
_______________________________________


More information about the Python-bugs-list mailing list