You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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()}"))?
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:
Visual Studio installed with only English language pack
or
Change Settings and then: All Settings -> Time & Language -> Language -> "Administrative Language Settings" -> "Administrative" -> "Change system locale" to English.
But I think S. B. Tam (@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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.