-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
OS-windowsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
from @eryksun (#117855 (comment)):
Note that the behavior for normalizing drive-relative paths is currently wrong in this case on Windows:
>>> nt._path_normpath('C:./spam') 'C:.\\spam'That's the result that we want here when returning an explicit current directory for internal use, but that's not the expected behavior for
normpath(). The fallback implementation that's used on POSIX gets it right:>>> ntpath.normpath('C:./spam') 'C:spam'
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-windowsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error