Skip to content

Conversation

@fsb4000
Copy link
Contributor

@fsb4000 fsb4000 commented May 4, 2021

issue #981

I think that this information will be useful until the python test scripts are rewritten so that they can work with any active codepage.

If you have a better wording for this item then let me know.

@fsb4000 fsb4000 requested a review from a team as a code owner May 4, 2021 13:43
@CaseyCarter CaseyCarter added the documentation Related to documentation or comments label May 5, 2021
@CaseyCarter CaseyCarter self-assigned this May 5, 2021
@fsb4000
Copy link
Contributor Author

fsb4000 commented May 13, 2021

python 3.9.5 broke the workaround :(

3.9.5
3.9.4

@fsb4000
Copy link
Contributor Author

fsb4000 commented May 13, 2021

Changing Windows 10 user inteface to English helped with python 3.9.5. Tests passes...
interface

@fsb4000
Copy link
Contributor Author

fsb4000 commented Jun 18, 2021

I found an another method.
If you have Visual Studio installed with only English language pack then tests passes without any manipulations with chcp or changing Windows user interface language.
(Previously I had 2 language packs installed: Russian and English)

@cpplearner
Copy link
Contributor

cpplearner commented Jun 18, 2021

Can we either fix the compiler warnings or change the script to decode the output with the current console code page (e.g. change out = out.decode() to something like out = out.decode(encoding=f"cp{__import__('ctypes').cdll.kernel32.GetConsoleOutputCP()}"))?

@fsb4000
Copy link
Contributor Author

fsb4000 commented Jul 12, 2021

I experimented a little and realized that it was enough to change these settings
Settings and then: All Settings -> Time & Language -> Language -> "Administrative Language Settings" -> "Administrative" -> "Change system locale"
to English.
Windows 10 user inteface remains in the local language.
изображение

So currently 2 working solutions:

  1. Visual Studio installed with only English language pack

or

  1. Change Settings and then: All Settings -> Time & Language -> Language -> "Administrative Language Settings" -> "Administrative" -> "Change system locale" to English.

But I think @cpplearner is right. We should fix it in the python scripts.
So I'm going to close this PR.
If someone will have a problem with the tests, then we can suggest these 2 solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Related to documentation or comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants