[Python-checkins] python/dist/src/Modules posixmodule.c, 2.329.2.3, 2.329.2.4
birkenfeld@users.sourceforge.net
birkenfeld at users.sourceforge.net
Wed Sep 14 22:51:44 CEST 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29927/Modules
Modified Files:
Tag: release24-maint
posixmodule.c
Log Message:
bug [ 1007046 ] os.startfile() doesn't accept Unicode filenames
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.329.2.3
retrieving revision 2.329.2.4
diff -u -d -r2.329.2.3 -r2.329.2.4
--- posixmodule.c 13 Mar 2005 22:18:26 -0000 2.329.2.3
+++ posixmodule.c 14 Sep 2005 20:51:40 -0000 2.329.2.4
@@ -7182,7 +7182,8 @@
{
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);
More information about the Python-checkins
mailing list