Repository navigation
test: batch Sysout DISPLAY of high bytes vs cobc, latin-1 and non-latin-1 (#4697) - #4699
Merged
Merged
Conversation
… writes record-charset bytes (#4691) jstr emits three-digit octal escapes for 0x00-0x1F and 0x7F-0xFF (no u-escapes: javac translates u000a/u000d before lexing). Sysout (batch forge and standalone) encodes with the record charset instead of UTF-8; equivalence.compare_sysout decodes the port's SYSOUT with the data encoding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| import shutil | ||
|
|
||
| import pytest | ||
| from test_det_programs import ROOT, _cobol, _java, _java_run, _java_run_batch, program # noqa: F401 |
Contributor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
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.
Fixes #4697
Stacked on #4696 — merge that first.
_java_run_batchgainsraw=(bytes) andcharset=(the batch Sysout/CobolRecords record charset).test_batch_sysout_high_bytes_equal_gnucobols: DISPLAY of X'80'..X'FF' on the batch runtime vs cobc, byte for byte, x bytes/typed/groups. ISO-8859-1: passes. IBM037, IBM1047, windows-1252: real divergence (hex-literal byte does not round-trip; EBCDIC line terminator is 0x15), filed as Batch Sysout: DISPLAY of a hex-literal byte >= X'80' is not byte-identical under a non-latin-1 record charset (cp037/cp1047/cp1252) #4698, marked xfail(strict=True).pr_gates.py --fast5/5.🤖 Generated with Claude Code