mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.
Will also check in on the 2.3 branch.
This commit is contained in:
parent
5301d9c10d
commit
7edd0a9b21
2 changed files with 3 additions and 1 deletions
|
@ -4607,7 +4607,7 @@ posix_lstat(PyObject *self, PyObject *args)
|
|||
return posix_do_stat(self, args, "et:lstat", lstat, NULL, NULL);
|
||||
#else /* !HAVE_LSTAT */
|
||||
#ifdef MS_WINDOWS
|
||||
return posix_do_stat(self, args, "et:lstat", STAT, "u:lstat", _wstati64);
|
||||
return posix_do_stat(self, args, "et:lstat", STAT, "U:lstat", _wstati64);
|
||||
#else
|
||||
return posix_do_stat(self, args, "et:lstat", STAT, NULL, NULL);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue