Kaydet (Commit) 66b32709 authored tarafından Victor Stinner's avatar Victor Stinner

_Py_normalize_encoding(): explain how the value 6 was computed

üst bd303c16
...@@ -2983,6 +2983,7 @@ _Py_normalize_encoding(const char *encoding, ...@@ -2983,6 +2983,7 @@ _Py_normalize_encoding(const char *encoding,
char *l_end; char *l_end;
if (encoding == NULL) { if (encoding == NULL) {
/* 6 == strlen("utf-8") + 1 */
if (lower_len < 6) if (lower_len < 6)
return 0; return 0;
strcpy(lower, "utf-8"); strcpy(lower, "utf-8");
......
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