Skip to content

Decode HPE Lean recipe literals as UTF-8 on Windows - #2531

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:ywz65/r007-hpe-binding-utf8
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:ywz65/r007-hpe-binding-utf8

Conversation

@ywz65

@ywz65 ywz65 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

The HPE emitted-recipe checker reads the frozen Lean literals using the platform default encoding. On Windows CPython 3.12 with its native cp1252 locale, the actual CLI raises UnicodeDecodeError at a UTF-8 Lean symbol before it can check any emitted recipe.

Read that source explicitly as UTF-8. A real-CLI regression builds a declared 38-helper/three-pair fixture, forces the cp1252 default on any host, and also runs the unpatched native Windows locale path with PYTHONUTF8=0. Both produce the expected binding receipt after the fix; both built-in left/right phase controls remain rejected, and a changed emitted phase still fails.

Validation: the new regression failed before the fix with the demonstrated UnicodeDecodeError and passes on Windows CPython 3.12.14 afterward. git diff --check passes. This synthetic fixture tests source decoding and recipe binding only: it is not a physical-word certificate, does not regenerate the historical run, and does not strengthen the Lean mathematical claim.

Task selection: complex-mechanisms seed 6b8dbb07bba55444154d03226fa293d3, changed to a concrete replay portability defect after inspecting the retained HPE helper interfaces. Base is canonical main 0fdd7d8, priority revision 4. Complete open-PR/Discussion/local-note overlap checked; the nearest semantic-binding and current tail-fault audits address different claims. Credit the retained HPE/Lean contributors; new work by ywz65 with substantial OpenAI Codex assistance, Apache-2.0. Frozen evidence and selected frontier remain unchanged.

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.

2 participants