Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNC path brokenness #176

Open
lazka opened this issue Sep 9, 2024 · 0 comments
Open

UNC path brokenness #176

lazka opened this issue Sep 9, 2024 · 0 comments

Comments

@lazka
Copy link
Member

lazka commented Sep 9, 2024

Two issues:

The last one fails:

$ mkdir -p /tmp/bla
$ touch /tmp/bla/unctest.py
$ python3 -c "import sys; sys.path.insert(0, r'C:/msys64/tmp/bla'); import unctest"
$ python3 -c "import sys; sys.path.insert(0, r'C:\\msys64\\tmp\\bla'); import unctest"
# broken:
$ python3 -c "import sys; sys.path.insert(0, r'\\\\?\\C:\\msys64\\tmp\\bla'); import unctest"
# works
$ MSYSTEM= python3 -c "import sys; sys.path.insert(0, r'\\\\?\\C:\\msys64\\tmp\\bla'); import unctest"

Maybe related:

$ python3 -c "import os; print(os.path.normpath(r'\\\\?\\C:\\msys64\\tmp\\bla'))"
//?/C:/msys64/tmp/bla

We should not normalize paths starting with with \\?\ even if MSYSTEM is set, as that would break them.

Possible related downstream issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant