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

Eric V. Smith eric at trueblade.com
Thu Nov 7 23:14:18 CET 2013


On 11/7/2013 5:13 PM, Victor Stinner wrote:
> 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.

Thanks!

Eric.




More information about the Python-Dev mailing list