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

Use sys.getdefaultencoding() instead of sys.stdout.encoding #6612

Merged

Conversation

twizmwazin
Copy link
Contributor

On windows when using pythonw.exe or pyinstaller >= 5.7, sys.stdout is set to None. Instead of using stdout to infer the default encoding, use sys.getdefaultencoding().

@twizmwazin
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Arizona Board of Regents"

@NikolajBjorner NikolajBjorner merged commit 1a9990a into Z3Prover:master Feb 28, 2023
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

Successfully merging this pull request may close these issues.

2 participants