[Python-checkins] python/dist/src/Modules posixmodule.c, 2.339, 2.340

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-serv29916/Modules

Modified Files:
	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.339
retrieving revision 2.340
diff -u -d -r2.339 -r2.340
--- posixmodule.c	14 Aug 2005 21:42:34 -0000	2.339
+++ posixmodule.c	14 Sep 2005 20:51:40 -0000	2.340
@@ -7248,7 +7248,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