python/dist/src/Modules posixmodule.c, 2.316, 2.317

Update of /cvsroot/python/python/dist/src/Modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25390 Modified Files: posixmodule.c Log Message: Fix [ 947405 ] os.utime() raises bad exception for unicode filenames Index: posixmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v retrieving revision 2.316 retrieving revision 2.317 diff -C2 -d -r2.316 -r2.317 *** posixmodule.c 4 Apr 2004 07:10:59 -0000 2.316 --- posixmodule.c 4 May 2004 08:10:37 -0000 2.317 *************** *** 2005,2010 **** #endif /* HAVE_UTIMES */ } ! if (res < 0) return posix_error_with_filename(path); Py_INCREF(Py_None); return Py_None; --- 2005,2015 ---- #endif /* HAVE_UTIMES */ } ! if (res < 0) { ! #ifdef Py_WIN_WIDE_FILENAMES ! if (have_unicode_filename) ! return posix_error_with_unicode_filename(wpath); ! #endif /* Py_WIN_WIDE_FILENAMES */ return posix_error_with_filename(path); + } Py_INCREF(Py_None); return Py_None;
participants (1)
-
mhammond@users.sourceforge.net