We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = None
closed_at = <Date 2018-08-19.04:44:28.301>
created_at = <Date 2014-10-10.12:44:43.923>
labels = ['interpreter-core', 'type-bug', '3.8', 'expert-unicode']
title = 'UTF-7 codec decodes ill-formed sequences starting with "+"'
updated_at = <Date 2018-08-19.04:44:28.300>
user = 'https://github.com/jwilk'
activity = <Date 2018-08-19.04:44:28.300>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = True
closed_date = <Date 2018-08-19.04:44:28.301>
closer = 'serhiy.storchaka'
components = ['Interpreter Core', 'Unicode']
creation = <Date 2014-10-10.12:44:43.923>
creator = 'jwilk'
dependencies = 
files = 
hgrepos = 
issue_num = 22602
keywords = ['patch']
message_count = 5.0
messages = ['228996', '323431', '323444', '323742', '323743']
nosy_count = 7.0
nosy_names = ['lemburg', 'loewis', 'vstinner', 'jwilk', 'ezio.melotti', 'serhiy.storchaka', 'ZackerySpytz']
pr_nums = ['8741']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue22602'
versions = ['Python 3.8']
The text was updated successfully, but these errors were encountered:
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:
Sorry, something went wrong.
This was also mentioned in bpo-24848.
What about a "+" character followed immediately by the end of the bytestring?
New changeset e349bf2 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)
Thank you for your PR Zackery.
No branches or pull requests