Browse Source

_Py_normalize_encoding(): explain how the value 6 was computed

pull/224/head
Victor Stinner 13 years ago
parent
commit
66b3270975
  1. 1
      Objects/unicodeobject.c

1
Objects/unicodeobject.c

@ -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…
Cancel
Save