Repository navigation
Missing the charset parameter in as_encoded_word() #67337
Description
Activity
In Lib/email/_header_value_parser.py:460 the as_encoded_word() method is called without mandatory argument charset.
- addedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Jan 2, 2015 Ping.
Same comment as the fold bug...I need to find time to work out a test case (or for someone else to do so).
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.
New changeset efd4ffa88173 by Serhiy Storchaka in branch '3.5':
Issues bpo-23147, bpo-23148: Presumably fixed bugs in folding UnstructuredTokenList.
https://hg.python.org/cpython/rev/efd4ffa88173New changeset 33593fcdf8b0 by Serhiy Storchaka in branch 'default':
Issues bpo-23147, bpo-23148: Presumably fixed bugs in folding UnstructuredTokenList.
https://hg.python.org/cpython/rev/33593fcdf8b0I can't find as_encoded_word anywhere. Even on 3.7 branch.
The code was completely rewritten in bpo-27240. No tests are needed.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: