[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2018-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your PR Zackery. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2018-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e349bf23584eef20e0d1e1b2989d9b1430f15507 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-22602: Raise an exception in the UTF-7 decoder for ill-formed sequences starting with "+". (GH-8741) https://github.com/python/cpython/commit

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2018-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about a "+" character followed immediately by the end of the bytestring? >>> b'+'.decode('utf-7') '' -- ___ Python tracker ___ __

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2018-08-11 Thread Zackery Spytz
Zackery Spytz added the comment: This was also mentioned in #24848. -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2018-08-11 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +8226 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2014-10-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Interpreter Core, Unicode -Library (Lib) nosy: +ezio.melotti, haypo, lemburg, loewis, serhiy.storchaka stage: -> needs patch versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2014-10-10 Thread Jakub Wilk
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') '@' -- compon