diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-01-26 20:21:50 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-01-26 20:21:50 (GMT) |
commit | 84432eb4c07ac812f140dae06633e73896449d39 (patch) | |
tree | 527ce0077852f14c99f10c9a249875ef98885d95 /Modules | |
parent | ef180dc3d0254264c71436358f4b2ecf73cfeb6e (diff) | |
download | cpython-84432eb4c07ac812f140dae06633e73896449d39.zip cpython-84432eb4c07ac812f140dae06633e73896449d39.tar.gz cpython-84432eb4c07ac812f140dae06633e73896449d39.tar.bz2 |
Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.
2.2.1 bugfix candidate.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 4 |
1 files 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); } |