changeset: 73470:bdb3f0e7e268 user: Victor Stinner date: Wed Nov 09 22:14:14 2011 +0100 files: Modules/posixmodule.c description: Issue #12442: nt._getdiskusage() is now using the Windows Unicode API diff -r 6bf07db23445 -r bdb3f0e7e268 Modules/posixmodule.c --- a/Modules/posixmodule.c Wed Nov 09 01:13:45 2011 +0100 +++ b/Modules/posixmodule.c Wed Nov 09 22:14:14 2011 +0100 @@ -8163,13 +8163,13 @@ { BOOL retval; ULARGE_INTEGER _, total, free; - LPCTSTR path; - - if (! PyArg_ParseTuple(args, "s", &path)) - return NULL; - - Py_BEGIN_ALLOW_THREADS - retval = GetDiskFreeSpaceEx(path, &_, &total, &free); + const wchar_t *path; + + if (! PyArg_ParseTuple(args, "u", &path)) + return NULL; + + Py_BEGIN_ALLOW_THREADS + retval = GetDiskFreeSpaceExW(path, &_, &total, &free); Py_END_ALLOW_THREADS if (retval == 0) return PyErr_SetFromWindowsErr(0);

AltStyle によって変換されたページ (->オリジナル) /