fix(activate.ps1): force UTF-8 console and cmdlet encoding

setup-hermes.ps1 and runtime_paths emit UTF-8 (check marks, JSON paths);
without this the sourced shell decodes them with the OEM code page.
This commit is contained in:
ethernet
2026-09-15 13:14:41 -04:00
parent 9a077628c5
commit 612ce5b5a9

View File

@@ -1,5 +1,9 @@
# Source this file to sync and apply the PM environment; deactivate restores it.
$ErrorActionPreference = 'Stop'
$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
$repo = $PSScriptRoot
$bootstrapSaved = @{}
foreach ($key in @('PYTHONPATH', 'PYTHONHOME', 'VIRTUAL_ENV')) {