-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use the OEM encoding for bat files #943
Conversation
Note: if the path to the virtualenv contains characters that can't be encoded in the OEM characterset, this PR will cause the creation of the virtualenv to fail, because of an encoding error in the creation of I suspect the best we can do in this case would be to write the bat files with the "replace" error handler, and issue a warning that the user will have to manually handle the PATH, as the activate scripts won't work. |
There's a more generic approach in my PR #900. I use |
Thanks for the pointer, I hadn't spotted your PR. I've added comments there, but no, you can't use |
@pfmoore do you know if the same logic should apply to |
|
Since all 3 references to |
If those characters are invalid, then Line 960 in 263283b
If directory was created, then the file path is right and should be written as-is. If it is not in But it may be that #950 is more important and people simple don't create virtualenvs with non-ascii names on Windows.
|
If that's the reason it won't be merged, then it doesn't help. =) |
I guess it's because my PR should be separated into multiple parts. |
By the way, this PR looks quite fine. Just replace |
2b3f876
to
9dfcb43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will require a rebase on master, and some test to validate the changes. Thanks!
Closing due to inactivity. |
No description provided.