Skip to content

fix: read autonomous coding inputs as UTF-8 - #469

Open
00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/use-utf8-autonomous-prompts
Open

00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/use-utf8-autonomous-prompts

Conversation

@00200200

Copy link
Copy Markdown

Customized prompts or feature descriptions containing non-ASCII text fail with UnicodeDecodeError when Python uses an ASCII system locale. Read the prompt templates and feature_list.json explicitly as UTF-8.

Validation: added subprocess regression coverage with Polish text in both files, with UTF-8 mode disabled/enabled and LC_ALL=C. Baseline: 1 failed, 1 passed; candidate: 2 passed. The new test passes Ruff; the source files retain their existing I001/UP024 findings. git diff --check passes. No Claude or API calls were made.

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