diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2003-08-06 02:46:58 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2003-08-06 02:46:58 (GMT) |
commit | 7edd0a9b21d28fceed4594332b72e794242ce0e0 (patch) | |
tree | 3d22acf2cfaf6191dc05f4c3b38fa46f21c534fd /Modules/posixmodule.c | |
parent | 5301d9c10d4a386f8889722cd9aba903ccaed17d (diff) | |
download | cpython-7edd0a9b21d28fceed4594332b72e794242ce0e0.zip cpython-7edd0a9b21d28fceed4594332b72e794242ce0e0.tar.gz cpython-7edd0a9b21d28fceed4594332b72e794242ce0e0.tar.bz2 |
Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.
Will also check in on the 2.3 branch.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 43af766..b8bda3b 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 |