[issue3714] nntplib module broken by str to unicode conversion

STINNER Victor report at bugs.python.org
Tue Oct 14 13:50:14 CEST 2008


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

Instead of ASCII, I think that it would be better to use ISO-8859-1 
since it's the most common charset.

New patch:
 - use ISO-8859-1 as the default charset
 - remove set_encoding() method: was it really needed
 - use makefile('r', encoding=self.encoding') to get a new 
TextIOWrapper with universal newline and automatic unicode decode => 
getline() is simplified and I removed CRLF

----------
nosy: +haypo
Added file: http://bugs.python.org/file11787/nntplib_unicode.patch

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


More information about the Python-bugs-list mailing list