diff --git a/scripts/install.ps1 b/scripts/install.ps1 index 3d4b7b504b53..e02acfff8816 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -2438,9 +2438,10 @@ You are Hermes Agent, an intelligent AI assistant created by Nous Research. You # Force the child python.exe to emit UTF-8 on its stdout/stderr. # On non-UTF-8 Windows locales (CP936/GBK zh-CN) Python defaults # its stream encoding to the active codepage and crashes on glyphs - # like ✓ (U+2713) that the codepage can't encode; the resulting - # non-UTF-8 bytes break this script's JSON result frame on stdout - # and abort the config-templates stage. Scope to this call only. + # like the checkmark (U+2713) that the codepage can't encode; the + # resulting non-UTF-8 bytes break this script's JSON result frame on + # stdout and abort the config-templates stage. Scope to this call + # only. (Comment kept ASCII per this file's PS 5.1 contract above.) $prevPythonioencoding = $env:PYTHONIOENCODING $prevPythonutf8 = $env:PYTHONUTF8 $env:PYTHONIOENCODING = "utf-8" diff --git a/tests/test_hermes_bootstrap.py b/tests/test_hermes_bootstrap.py index 6c2ecaf425ee..a95bff9127ad 100644 --- a/tests/test_hermes_bootstrap.py +++ b/tests/test_hermes_bootstrap.py @@ -24,6 +24,7 @@ import os import subprocess import sys import textwrap +from pathlib import Path import pytest