diff options
| author | Georg Brandl <georg@python.org> | 2008-03-21 20:46:11 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-03-21 20:46:11 +0000 |
| commit | 5aa5e045d20191ea5026e796b31ff180207444f1 (patch) | |
| tree | af019031ddc6b7b3dbfd3840590a28a304ad5321 /Python/getargs.c | |
| parent | 59cba20ec30f5f5b1de545dda496312068bda9d8 (diff) | |
| download | cpython-5aa5e045d20191ea5026e796b31ff180207444f1.tar.gz | |
Add XXX comments for whoever cleans up getargs.c :)
Diffstat (limited to 'Python/getargs.c')
| -rw-r--r-- | Python/getargs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index abe0887bf5..1370e098ad 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -823,6 +823,9 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, } else return converterr("string", arg, msgbuf, bufsize); + /* XXX(gb): this test is completely wrong -- p is a + * byte string while arg is a Unicode. I *think* it should + * check against the size of uarg... */ if ((Py_ssize_t)strlen(*p) != PyUnicode_GetSize(arg)) return converterr("string without null bytes", arg, msgbuf, bufsize); @@ -898,6 +901,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, } format++; } + /* XXX(gb): same comment as for 's' applies here... */ else if (*p != NULL && (Py_ssize_t)strlen(*p) != PyUnicode_GetSize(arg)) return converterr( |
