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.

Author mglover
Recipients barry, mglover, r.david.murray
Date 2021-03-14.20:46:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615754789.09.0.690251462615.issue43493@roundup.psfhosted.org>
In-reply-to
Content
The attached file demonstrates the incorrect folding behavior I'm seeing.  Header lines of a certain total length get folded after the colon following the header name, which is not valid RFC.  Slightly longer or shorter lines are folded correctly.

Interestingly, the test file produces correct output on 3.5.2

$ python --version
Python 3.8.5

$ sudo apt install python3
...
python3 is already the newest version (3.8.2-0ubuntu2).

(yes, that difference has me scratching my head)

And yes, I realize this is not the latest release of the 3.8 branch, but it *is* the latest available through apt on Ubuntu 20.04 LTS, and a search of the issue tracker and the release notes for all of 3.8.* turned up nothing applicable.
History
Date User Action Args
2021-03-14 20:46:29mgloversetrecipients: + mglover, barry, r.david.murray
2021-03-14 20:46:29mgloversetmessageid: <1615754789.09.0.690251462615.issue43493@roundup.psfhosted.org>
2021-03-14 20:46:29mgloverlinkissue43493 messages
2021-03-14 20:46:28mglovercreate