[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated
STINNER Victor
report at bugs.python.org
Fri Jan 14 23:05:08 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
belopolsky> Limiting field width when formatting error messages is
belopolsky> a good safety measure.
The problem is that PyUnicode_FromFormatV() doesn't support %.100s format (it ignores .100). If we truncate at 100 bytes, it may truncate an UTF-8 string in the middle of a character :-/ And I don't want to implement it because I don't like arbitrary limitations in Python.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10833>
_______________________________________
More information about the Python-bugs-list
mailing list