[Python-checkins] python/dist/src/Modules posixmodule.c, 2.300.8.8,
2.300.8.9
mhammond at users.sourceforge.net
mhammond at users.sourceforge.net
Tue May 4 04:07:52 EDT 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24956
Modified Files:
Tag: release23-maint
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.300.8.8
retrieving revision 2.300.8.9
diff -C2 -d -r2.300.8.8 -r2.300.8.9
*** posixmodule.c 4 Apr 2004 07:15:58 -0000 2.300.8.8
--- posixmodule.c 4 May 2004 08:07:49 -0000 2.300.8.9
***************
*** 1998,2003 ****
#endif /* HAVE_UTIMES */
}
! if (res < 0)
return posix_error_with_filename(path);
Py_INCREF(Py_None);
return Py_None;
--- 1998,2008 ----
#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;
More information about the Python-checkins
mailing list