Skip to content

fix: add encoding="utf-8" to Path.write_text() calls (P1) - #331

Open
hashbender wants to merge 1 commit into
mainfrom
mirror/pr-56385
Open

fix: add encoding="utf-8" to Path.write_text() calls (P1)#331
hashbender wants to merge 1 commit into
mainfrom
mirror/pr-56385

Conversation

@hashbender

Copy link
Copy Markdown
Owner

Summary

Add explicit encoding="utf-8" to 39 Path.write_text() calls across 16 files.

Problem

Path.write_text() without encoding defaults to system locale. On Windows (cp1252), this corrupts non-ASCII content. Same root cause as PLW1514 but for the write path.

This is the write-side counterpart to the read_text() encoding fix (PR NousResearch#56115).

Changes (16 files, 39 instances)

File Count
tools/skills_hub.py 8
hermes_cli/service_manager.py 5
hermes_cli/container_boot.py 5
gateway/run.py 5
hermes_cli/profiles.py 3
gateway/delivery.py 2
hermes_cli/main.py 2
agent/copilot_acp_client.py 1
tools/web_tools.py 1
tools/xai_http.py 1
gateway/slash_commands.py 1
gateway/dead_targets.py 1
gateway/platforms/qqbot/adapter.py 1
hermes_cli/gateway.py 1
hermes_cli/banner.py 1
hermes_cli/uninstall.py 1

Testing

All 16 files pass py_compile verification. Zero duplicate encodings.


Mirror-of: NousResearch#56385
NousResearch#56385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant