summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-09-14 20:51:40 (GMT)
committerGeorg Brandl <georg@python.org>2005-09-14 20:51:40 (GMT)
commit402b53d43fe0b711806d3ac55ee7ce22bba900d1 (patch)
treeda0da2b894cc271c33f4830c62de4d1bcae09297 /Modules
parent3225242a39bef1a9f759867518981f512c2d61f3 (diff)
downloadcpython-402b53d43fe0b711806d3ac55ee7ce22bba900d1.zip
cpython-402b53d43fe0b711806d3ac55ee7ce22bba900d1.tar.gz
cpython-402b53d43fe0b711806d3ac55ee7ce22bba900d1.tar.bz2
bug [ 1007046 ] os.startfile() doesn't accept Unicode filenames
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 2f23f82..7319568 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7248,7 +7248,8 @@ win32_startfile(PyObject *self, PyObject *args)
{
char *filepath;
HINSTANCE rc;
- if (!PyArg_ParseTuple(args, "s:startfile", &filepath))
+ if (!PyArg_ParseTuple(args, "et:startfile",
+ Py_FileSystemDefaultEncoding, &filepath))
return NULL;
Py_BEGIN_ALLOW_THREADS
rc = ShellExecute((HWND)0, NULL, filepath, NULL, NULL, SW_SHOWNORMAL);