Repository navigation
Decode HPE Lean recipe literals as UTF-8 on Windows - #2531
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.