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:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user