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: Missing the charset parameter in as_encoded_word()
Type: behavior Stage: resolved
Components: email, Library (Lib) Versions: Python 3.7, Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barry, iritkatriel, python-dev, r.david.murray, serhiy.storchaka
Priority: normal Keywords:

Created on 2015-01-02 10:38 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (7)
msg233310 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-01-02 10:38
In Lib/email/_header_value_parser.py:460 the as_encoded_word() method is called without mandatory argument charset.
msg235892 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-02-13 14:28
Ping.
msg236369 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-02-21 15:59
Same comment as the fold bug...I need to find time to work out a test case (or for someone else to do so).
msg268854 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-06-19 16:06
The only tests that call cte_encode() are test_address_list_with_unicode_names and test_address_list_with_unicode_names_in_quotes. The only method that calls cte_encode() (besides recursive cte_encode) is TokenList._fold().

Methods UnstructuredTokenList.cte_encode() and Phrase._fold() are not covered by tests.
msg270628 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-07-17 10:26
New changeset efd4ffa88173 by Serhiy Storchaka in branch '3.5':
Issues #23147, #23148: Presumably fixed bugs in folding UnstructuredTokenList.
https://hg.python.org/cpython/rev/efd4ffa88173

New changeset 33593fcdf8b0 by Serhiy Storchaka in branch 'default':
Issues #23147, #23148: Presumably fixed bugs in folding UnstructuredTokenList.
https://hg.python.org/cpython/rev/33593fcdf8b0
msg408502 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-12-13 23:59
I can't find as_encoded_word anywhere. Even on 3.7 branch.
msg408517 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-12-14 08:59
The code was completely rewritten in issue27240. No tests are needed.
History
Date User Action Args
2022-04-11 14:58:11adminsetgithub: 67337
2021-12-14 08:59:56serhiy.storchakasetstatus: open -> closed
resolution: fixed
messages: + msg408517

stage: test needed -> resolved
2021-12-13 23:59:51iritkatrielsetnosy: + iritkatriel
messages: + msg408502
2016-09-14 13:44:03serhiy.storchakasetstage: test needed
versions: + Python 3.7
2016-07-17 10:26:32python-devsetnosy: + python-dev
messages: + msg270628
2016-06-19 16:06:28serhiy.storchakasetmessages: + msg268854
versions: + Python 3.6, - Python 3.4
2015-02-21 15:59:58r.david.murraysetmessages: + msg236369
2015-02-13 14:28:55serhiy.storchakasetmessages: + msg235892
2015-01-02 10:38:19serhiy.storchakacreate