summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-05-04 18:32:32 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-05-04 18:32:32 (GMT)
commit653dece278ca0e836651de290aaf22335dd476b0 (patch)
tree77457392f6a8b9f1dba2c1fcfdd4e4110a00c91d /Include
parent2827709d6dc594629ffa9904f55c839593891fc7 (diff)
downloadcpython-653dece278ca0e836651de290aaf22335dd476b0.zip
cpython-653dece278ca0e836651de290aaf22335dd476b0.tar.gz
cpython-653dece278ca0e836651de290aaf22335dd476b0.tar.bz2
Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal sequences.
Patch by Nick Barnes and Victor Stinner.
Diffstat (limited to 'Include')
-rw-r--r--Include/unicodeobject.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 2e399a0..b3fe2f7 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -740,10 +740,8 @@ PyAPI_FUNC(PyObject*) PyUnicode_DecodeUTF7Stateful(
PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF7(
const Py_UNICODE *data, /* Unicode char buffer */
Py_ssize_t length, /* number of Py_UNICODE chars to encode */
- int encodeSetO, /* force the encoder to encode characters in
- Set O, as described in RFC2152 */
- int encodeWhiteSpace, /* force the encoder to encode space, tab,
- carriage return and linefeed characters */
+ int base64SetO, /* Encode RFC2152 Set O characters in base64 */
+ int base64WhiteSpace, /* Encode whitespace (sp, ht, nl, cr) in base64 */
const char *errors /* error handling */
);