You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
email.utils.encode_rfc2231(string, None, None) returns broken value #85014
encode_rfc2231() must not change the returned value if no transformation of the input was done.
This is also mentioned in the docstring of that function.
Actual behavior:
encode_rfc2231('foo bar', None, None)
'foo%20bar'
Activity
spaceone commentedon Jun 1, 2020
encode_rfc2231()must not change the returned value if no transformation of the input was done.This is also mentioned in the docstring of that function.
Actual behavior:
encode_rfc2231('foo bar', None, None)
'foo%20bar'
Expected behavior:
encode_rfc2231('foo bar', None, None)
'foo bar'
orsenthil commentedon Jun 3, 2020
This will be a breaking change to the clients relying on current broken behavior, setting the fix version to 3.10 (current active).
spaceone commentedon Jun 3, 2026
NEWSentry written.CLA is signed.
→ PR #20564 is ready to go.