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

Set encoding to utf-8 for subprocesses #2726

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Set encoding to utf-8 for subprocesses #2726

merged 1 commit into from
Apr 1, 2024

Conversation

joeyballentine
Copy link
Member

As discovered by a user in the discord, chaiNNer's subprocesses can break if you have a system language other than English on windows. This is because Popen by default lets windows decide what encoding to use.

So, to fix this, theoretically forcing the encoding to be utf-8 should prevent these kinds of issues.

@joeyballentine joeyballentine merged commit c1d6bab into main Apr 1, 2024
14 checks passed
@joeyballentine joeyballentine deleted the subp-utf branch April 1, 2024 20:31
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