Backport loewis' checkin of revision 1.123:
Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.
2.2.1 bugfix candidate.
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)
{
char *list;
- if (!PyArg_ParseTuple(args, "s:split", &list))
+ if (!PyArg_ParseTuple(args, "et:split", "utf-8", &list))
return NULL;
return Split(list);
}