mirror of
https://github.com/python/cpython.git
synced 2025-07-18 16:55:20 +00:00
_Py_normalize_encoding(): explain how the value 6 was computed
This commit is contained in:
parent
bd303c165b
commit
66b3270975
1 changed files with 1 additions and 0 deletions
|
@ -2983,6 +2983,7 @@ _Py_normalize_encoding(const char *encoding,
|
|||
char *l_end;
|
||||
|
||||
if (encoding == NULL) {
|
||||
/* 6 == strlen("utf-8") + 1 */
|
||||
if (lower_len < 6)
|
||||
return 0;
|
||||
strcpy(lower, "utf-8");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue