This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: email.utils.encode_rfc2231(string, None, None) returns broken value
Type: behavior Stage:
Components: email, Library (Lib) Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: barry, maxking, orsenthil, r.david.murray, spaceone
Priority: normal Keywords:

Created on 2020-06-01 02:17 by spaceone, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 20564 open spaceone, 2020-06-01 02:17
Messages (2)
msg370526 - (view) Author: SpaceOne (spaceone) * Date: 2020-06-01 02:17
`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'
msg370670 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2020-06-03 13:08
This will be a breaking change to the clients relying on current broken behavior, setting the fix version to 3.10 (current active).
History
Date User Action Args
2022-04-11 14:59:31adminsetgithub: 85014
2020-06-05 04:08:13xtreaksetnosy: + barry, r.david.murray, maxking
components: + email
2020-06-03 13:08:04orsenthilsetnosy: + orsenthil
messages: + msg370670
2020-06-03 13:06:44orsenthilsetversions: + Python 3.10, - Python 3.5, Python 3.6, Python 3.7
2020-06-01 02:17:06spaceonecreate