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

Manually set python encoding env var in subprocesses (to fix language issue) #2815

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

joeyballentine
Copy link
Member

Allegedly (according to this), this is how you force a python subprocess to output utf-8 only.

This should theoretically fix the remaining issues around people using non-utf8 windows languages. I have not tested this myself as my system language is english.

@joeyballentine joeyballentine marked this pull request as draft April 23, 2024 16:50
@joeyballentine
Copy link
Member Author

I figured out a way to simulate it (just have the subprocess output "Я"), and this does not fix it. the good thing is, i should be able to figure out a solution now.

@joeyballentine joeyballentine marked this pull request as ready for review April 23, 2024 18:45
@joeyballentine
Copy link
Member Author

Seems that this does fix the issue: https://discord.com/channels/930865462852591648/1045361136196919366/1232400378608357470

The way I was testing this must have not been representative of the actual problem. So, this should be good to go and should fix the issue.

@joeyballentine joeyballentine merged commit 6a95361 into main Apr 23, 2024
14 checks passed
@joeyballentine joeyballentine deleted the pythonencoding branch April 23, 2024 19:45
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