-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-35148: fix resetting codepage in activate.bat #10696
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
Conversation
This comment has been minimized.
This comment has been minimized.
|
@eryksun Thanks for the link. However, I have the feeling that critique about robustness might apply to the original implementation as well. PS: I did sign the CLA yesterday... How long does that usually take to become visible at https://check-python-cla.herokuapp.com/? |
This leaves the original approach untouched and simply removes a period, if it is an unwanted part of the CP string.
|
@eryksun Please review the new approach, which should have even less side effects. |
|
Dear reviewers, this is another attempt to draw anybody's attention to this fix. For non-US Windows versions like German and Swiss the linked bug is quite annoying and confusing users. If at all possible could anybody review this trivial patch? I s/o knows what I can do to bring just a little bit of attention to this patch to get it merged, please let me know. |
|
@moltob Thank you very much for providing this patch. It helped me to resolve this exact problem on my german Windows 7 machine. |
|
@Acconut You're welcome. It's sad, that there does not seem to be a way to raise this annoyance for non-US users to the mainly US-based core developer group. I gave up on re-requesting a review. 😞 Might be related to many developers not using Windows either... If anybody has a suggestion, please let me know. Just double-checked with 3.7.3. Ugh... |
|
This issue is resolved (#8321). Sorry it was handled badly. In addition to the accepted PR and this PR, there was also #10295. The latter was merged but subsequently reverted because it relied on the virtual environment having a "python.exe" executable, but sometimes we only have the debug build, "python_d.exe". Maybe Vinay was waiting for that problem to be addressed. |
The current version of the Windows
activate.batactivation script unfortunately does not work well in some international versions of Windows.E.g. on a German Windows 10 version (or the bug reporter's Swiss version) the output of
chcpis something like this:Unlike the US version, the statement ends with a period, unexpected by the activation script, leading to an unsuccessful attempt to reset the codepage after venv installation. While the venv is set up correctly, the codepage is not reset. In addition a user-visible error message appears, confusing users and giving the doubt whether venv actually worked:
(English: "wrong parameter format")
The fix leaves the original approach in place, but deletes any periods from the CP number string, if they exist, which means it simply cleans up the CP string. This should have minimal side effects.
https://bugs.python.org/issue35148