Commit 872c2367 authored by Victor Stinner's avatar Victor Stinner

Fix _Py_normalize_encoding() command

It's not exactly the same than encodings.normalize_encoding(): the C function
also converts to lowercase.
parent bde261d2
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment