aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/tests/runner/plugins/dummy-installer.py
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-18 10:41:56 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-18 10:41:56 -0500
commit915298db2a22213441c5da909786ccc0db64bbaa (patch)
treedc6df417ba015e8917ebc7f89aec1350bdcb31c9 /libs/plugin_python/tests/runner/plugins/dummy-installer.py
parent4279200bd015d79179961f02a1b4d1544c61ff52 (diff)
Force C.UTF-8 locale for Proton when user env isn't UTF-8
Wine picks its Unix codepage from LC_ALL/LC_CTYPE/LANG via nl_langinfo(CODESET); a C/POSIX locale falls back to CP1252, so non-ASCII Linux filenames (CJK, Cyrillic) fail UTF-8→UTF-16 conversion and MSVC std::filesystem throws "Invalid name" when Windows tools like PGPatcher iterate mod dirs through the Z:\ drive. Steam's pressure-vessel can strip the user locale, triggering this. Detect UTF-8 in LC_ALL/LC_CTYPE/LANG and only inject C.UTF-8 when none is UTF-8 already — preserves de_DE.UTF-8, ja_JP.UTF-8, etc. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'libs/plugin_python/tests/runner/plugins/dummy-installer.py')
0 files changed, 0 insertions, 0 deletions