From 84432eb4c07ac812f140dae06633e73896449d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 26 Jan 2002 20:21:50 +0000 Subject: Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962. 2.2.1 bugfix candidate. --- Modules/_tkinter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index ccfab51..6e99359 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1191,7 +1191,7 @@ Tkapp_SplitList(PyObject *self, PyObject *args) 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 @@ Tkapp_Split(PyObject *self, PyObject *args) { char *list; - if (!PyArg_ParseTuple(args, "s:split", &list)) + if (!PyArg_ParseTuple(args, "et:split", "utf-8", &list)) return NULL; return Split(list); } -- cgit v0.12