summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2003-08-06 02:46:58 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2003-08-06 02:46:58 (GMT)
commit7edd0a9b21d28fceed4594332b72e794242ce0e0 (patch)
tree3d22acf2cfaf6191dc05f4c3b38fa46f21c534fd /Modules/posixmodule.c
parent5301d9c10d4a386f8889722cd9aba903ccaed17d (diff)
downloadcpython-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.c2
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