mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fix _Py_normalize_encoding() command
It's not exactly the same than encodings.normalize_encoding(): the C function also converts to lowercase.
This commit is contained in:
parent
b329e1bb5b
commit
ebe17e0347
1 changed files with 3 additions and 3 deletions
|
@ -3100,9 +3100,9 @@ PyUnicode_FromEncodedObject(PyObject *obj,
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Normalize an encoding name: C implementation of
|
/* Normalize an encoding name: similar to encodings.normalize_encoding(), but
|
||||||
encodings.normalize_encoding(). Return 1 on success, or 0 on error (encoding
|
also convert to lowercase. Return 1 on success, or 0 on error (encoding is
|
||||||
is longer than lower_len-1). */
|
longer than lower_len-1). */
|
||||||
int
|
int
|
||||||
_Py_normalize_encoding(const char *encoding,
|
_Py_normalize_encoding(const char *encoding,
|
||||||
char *lower,
|
char *lower,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue