Skip to content

det: hex literals raw bytes, SYSOUT separator plain LF under any record charset (#4698) - #4794

Merged
squid-protocol merged 2 commits into
mainfrom
fix/4698-sysout-hex-bytes
Oct 9, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/4698-sysout-hex-bytes

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4698. Part of #4270.

IBM semantics (Enterprise COBOL Language Reference, "Hexadecimal notation for alphanumeric literals"): X'hh' is exactly those bytes, no code-page translation; DISPLAY to SYSOUT writes a record of the item's bytes, no newline byte.

  • Hex literals are emitted as Cobol.hex(...), the text the record charset encodes back to the literal's bytes. Ordinary literals still go through the code page.
  • New cobolrt/Lossless: the record charset keeps all 256 bytes (windows-1252 unmapped X'81' etc.).
  • Batch and standalone Sysout write a plain LF after each DISPLAY in every charset (framing, not data); a byte the charset leaves unmapped is written as itself.
  • Harness (sysout_lines, compare_sysout) splits both captures on the LF byte, then decodes each record.
  • Register D2 updated in oracle_assumptions.md (if docs: oracle-assumptions register as one file per entry, generated page #4793 merges first, move it to register/D2.md and run register.py render).
  • The 9 strict xfails removed; they now pass. Added a unit test for the EBCDIC record split.

Checks: test_det_bytes_4690.py 17 passed (E2E); det_port.py check: all 80 ports changed (runtime + CS line), as expected; proof_sweep.py --det-only --skip-db2: 46/49 proven, "as expected"; pr_gates.py --fast 5/5, --ratchets 7/7 (JDK 17).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

…nder every record charset (#4698)

IBM: X'hh' denotes exactly those bytes (no code-page translation); a SYSOUT DISPLAY is a record with no newline byte.
Cobol.hex + lossless record charset; Sysout writes LF; harness splits records on bytes. Register D2 updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging labels Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 9, 2026 15:45
@squid-protocol
squid-protocol merged commit aeafc7b into main Oct 9, 2026
37 checks passed
@squid-protocol
squid-protocol deleted the fix/4698-sysout-hex-bytes branch October 9, 2026 15:45
squid-protocol added a commit that referenced this pull request Oct 9, 2026
…raming) into register/D2.md; re-render

Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 9, 2026
…ge (#4793)

* docs: oracle-assumptions register as one file per entry, generated page (#4788)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

* register: track _layout.json (un-ignore it past the *.json rule)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

* register: carry #4794's D2 update (raw-byte hex literals, LF SYSOUT framing) into register/D2.md; re-render

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Batch Sysout: DISPLAY of a hex-literal byte >= X'80' is not byte-identical under a non-latin-1 record charset (cp037/cp1047/cp1252)

1 participant