diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-10-12 11:57:45 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-10-12 11:57:45 (GMT) |
commit | ebe17e0347944b01a771eae4cee7f2a38cc82e42 (patch) | |
tree | 07c2c4642603ecac377172729aa68f6f1772b00b | |
parent | b329e1bb5bd2a59cf22550dc19c8744491d51801 (diff) | |
download | cpython-ebe17e0347944b01a771eae4cee7f2a38cc82e42.zip cpython-ebe17e0347944b01a771eae4cee7f2a38cc82e42.tar.gz cpython-ebe17e0347944b01a771eae4cee7f2a38cc82e42.tar.bz2 |
Fix _Py_normalize_encoding() command
It's not exactly the same than encodings.normalize_encoding(): the C function
also converts to lowercase.
-rw-r--r-- | Objects/unicodeobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 91be603..99069cd 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -3100,9 +3100,9 @@ PyUnicode_FromEncodedObject(PyObject *obj, return v; } -/* Normalize an encoding name: C implementation of - encodings.normalize_encoding(). Return 1 on success, or 0 on error (encoding - is longer than lower_len-1). */ +/* Normalize an encoding name: similar to encodings.normalize_encoding(), but + also convert to lowercase. Return 1 on success, or 0 on error (encoding is + longer than lower_len-1). */ int _Py_normalize_encoding(const char *encoding, char *lower, |