Force UTF-8 mode for Windows Python scripts#2894
Merged
ghutchis merged 1 commit intoJul 21, 2026
Merged
Conversation
aouxwoux
force-pushed
the
codex/force-utf8-python-output
branch
from
July 12, 2026 17:18
cbee7b3 to
3552b94
Compare
Member
|
Hi - as part of our policy, we require commits to be signed by full names and permanent e-mail addresses. This allows us to contact contributors, e.g. for manuscripts about Avogadro development. This commit is currently signed as: aouxwoux 81102668+aouxwoux@users.noreply.github.com Which does neither. Please include a full name and permanent email address. Thanks. |
Signed-off-by: Vipul Mittal <vipulmittal803@gmail.com>
aouxwoux
force-pushed
the
codex/force-utf8-python-output
branch
from
July 13, 2026 05:03
3552b94 to
8f11eb5
Compare
Member
|
Great - apologies for the delay. LGTM - many thanks. |
|
Congrats on merging your first pull request! 🎉 Thanks for making Avogadro better for everyone! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For Windows launches, set
PYTHONUTF8=1on the process environment in the sharedPythonScriptlaunch path. This makes direct Python and pixi-launched plugin scripts use UTF-8 consistently, avoiding system-locale decoding of plugin output.Adds a Windows regression test that launches a temporary Python script and verifies
sys.flags.utf8_modeis enabled.Validation:
git diff --checkPYTHONUTF8=1enables Python UTF-8 modeFixes #1618.