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 <rep...@bugs.python.org> <http://bugs.python.org/issue22602> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com