[Python-Dev] [Python-checkins] cpython: Fix _Py_normalize_encoding(): ensure that buffer is big enough to store "utf-8"

Victor Stinner victor.stinner at gmail.com
Thu Nov 7 23:13:11 CET 2013


2013/11/7 Eric V. Smith <eric at trueblade.com>:
> Then how about at least a comment about how 6 is derived?
>
>          if (lower_len < 6)   /* 6 == strlen("utf-8") + 1 */
>              return 0;

Ok, I added the comment in changeset 9c929b9e0a2a.

Victor


More information about the Python-Dev mailing list