[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"
Jakub Wilk
report at bugs.python.org
Fri Oct 10 14:44:43 CEST 2014
New submission from Jakub Wilk:
RFC 2152 reads:
A "+" character followed immediately by any character other than
members of set B or "-" is an ill-formed sequence.
"@" is not a member of B, so I would expect this to raise UnicodeDecodeError:
>>> b'+@'.decode('UTF-7')
'@'
----------
components: Library (Lib)
messages: 228996
nosy: jwilk
priority: normal
severity: normal
status: open
title: UTF-7 codec decodes ill-formed sequences starting with "+"
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22602>
_______________________________________
More information about the Python-bugs-list
mailing list