You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: lowUI tweaks, documentation, and minor optimizationsscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Found by the #4697 batch-path byte test. With the batch Sysout (_RUNTIME) and data.record_charset IBM037/IBM1047/windows-1252, MOVE X'80' TO R / DISPLAY R writes the record charset encoding of the char U+0080 (IBM1047: 0x20, windows-1252: 0x3F) and the line terminator as the charset encodes "\n" (0x15 for EBCDIC), where cobc writes the raw byte 0x80 and 0x0A. A hex literal (and the DISPLAY of a byte that came from one) does not round-trip its byte under a non-latin-1 charset: the literal is a latin-1 view of the byte, Sysout encodes it with the record charset. Under ISO-8859-1 all 128 bytes match (tests/cobol_mainframe/test_det_bytes_4690.py::test_batch_sysout_high_bytes_equal_gnucobols). Decide the intended semantics (hex literal bytes decoded through the record charset; whether the Sysout line terminator is charset-encoded) and fix. Part of #4270, follow-up to #4697.
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: lowUI tweaks, documentation, and minor optimizationsscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
test: batch Sysout DISPLAY of high bytes vs cobc, latin-1 and non-lat…
det: hex literals are raw bytes and the SYSOUT separator a plain LF u…