New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binascii.b2a_qp oddities #41324
Comments
[Python 2.5a0 (#9, Dec 8 2004, 12:37:01); the binascii.b2a_qp has several quirks discovered when (1) It lets low bytes pass through unescaped -- e.g. (2) It determines whether to enforce \n or \r\n by This means that: >>> s0 = "The quick " + chr(0) + "brown fox.\r\n"
>>> s1 = "The quick " + chr(1) + "brown fox.\r\n"
>>> binascii.b2a_qp(s0)
'The quick \x00brown fox.\n'
>>> binascii.b2a_qp(s1)
'The quick \x01brown fox.\r\n' and related strangenesses. (3) The code escapes the period "." if and only if it's A new strictly RFC1521-compliant qp encoding would be a |
Fixed (1) and (3) in rev. 54367. I think (2) is not important enough to do anything about it. |
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:
The text was updated successfully, but these errors were encountered: