diff options
author | neonene <53406459+neonene@users.noreply.github.com> | 2022-01-13 23:35:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 23:35:42 (GMT) |
commit | d4e64cd4b0ea431d4e371f9b0a25f6b75a069dc1 (patch) | |
tree | cecdf1d08cb790283d061b8263086354976c4939 /Include | |
parent | b8ddf7e794e5316981016d6d014862e3c4ce149a (diff) | |
download | cpython-d4e64cd4b0ea431d4e371f9b0a25f6b75a069dc1.zip cpython-d4e64cd4b0ea431d4e371f9b0a25f6b75a069dc1.tar.gz cpython-d4e64cd4b0ea431d4e371f9b0a25f6b75a069dc1.tar.bz2 |
bpo-46362: Ensure ntpath.abspath() uses the Windows API correctly (GH-30571)
This makes ntpath.abspath()/getpath_abspath() follow normpath(), since some WinAPIs such as PathCchSkipRoot() require backslashed paths.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_fileutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index 61c11a8..3ce8108 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -235,6 +235,9 @@ extern int _Py_EncodeNonUnicodeWchar_InPlace( extern int _Py_isabs(const wchar_t *path); extern int _Py_abspath(const wchar_t *path, wchar_t **abspath_p); +#ifdef MS_WINDOWS +extern int _PyOS_getfullpathname(const wchar_t *path, wchar_t **abspath_p); +#endif extern wchar_t * _Py_join_relfile(const wchar_t *dirname, const wchar_t *relfile); extern int _Py_add_relfile(wchar_t *dirname, |