[issue4661] email.parser: impossible to read messages encoded in a different encoding

Yu Zhao report at bugs.python.org
Fri Oct 3 03:07:07 CEST 2014


Yu Zhao added the comment:

BytesParser.parse uses TextIOWrapper which by default translates universal newlines to '\n'. This breaks binary payload.

Fix the problem by disabling the translation.

----------
components: +email -Library (Lib)
nosy: +yu.zhao at getcwd.com
Added file: http://bugs.python.org/file36788/BytesParser_newline.patch

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


More information about the Python-bugs-list mailing list