diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-07 22:12:23 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-07 22:12:23 (GMT) |
commit | 66b3270975ebf33596559d70549ea66d1dfd9d9c (patch) | |
tree | b7f29acd7d4b750f9b604509bd282f2eb39bfa5d /Objects/unicodeobject.c | |
parent | bd303c165bc914fc943026ece55f4ebd225614c9 (diff) | |
download | cpython-66b3270975ebf33596559d70549ea66d1dfd9d9c.zip cpython-66b3270975ebf33596559d70549ea66d1dfd9d9c.tar.gz cpython-66b3270975ebf33596559d70549ea66d1dfd9d9c.tar.bz2 |
_Py_normalize_encoding(): explain how the value 6 was computed
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1375ef3..224a80b 100644 --- a/Objects/unicodeobject.c +++ b/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"); |