Mercurial > cpython-lru_cache-weakref
diff Modules/_tkinter.c @ 21827:7ba2a8c162fa 2.2
It's merge time!
Backport loewis' checkin of revision 1.123:
Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.
2.2.1 bugfix candidate.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Mon, 28 Jan 2002 15:14:57 +0000 |
| parents | 1852caba7014 |
| children | 6ba940cd99ef |
line wrap: on
line diff
--- a/Modules/_tkinter.c Mon Jan 28 15:13:21 2002 +0000 +++ b/Modules/_tkinter.c Mon Jan 28 15:14:57 2002 +0000 @@ -1191,7 +1191,7 @@ PyObject *v; int i; - if (!PyArg_ParseTuple(args, "s:splitlist", &list)) + if (!PyArg_ParseTuple(args, "et:splitlist", "utf-8", &list)) return NULL; if (Tcl_SplitList(Tkapp_Interp(self), list, &argc, &argv) == TCL_ERROR) @@ -1219,7 +1219,7 @@ { char *list; - if (!PyArg_ParseTuple(args, "s:split", &list)) + if (!PyArg_ParseTuple(args, "et:split", "utf-8", &list)) return NULL; return Split(list); }
