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
Porting ticket: the records' code page is never stated -- a model guessed IBM037 for Latin-1 data #4060
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
What. The porting ticket never tells the model which code page the record bytes are in.
Found re-running the porting loop on CBTRN03C for #4056 (2026-10-01): attempt 1 decoded every record as IBM037 (EBCDIC) while the case's data is ISO-8859-1. The records came out garbled, the dates blank, and the step abended. The SYSOUT comparison showed it plainly, and attempt 2 switched to ISO-8859-1 and was proven. The earlier committed port happened to pick ISO-8859-1. Nothing in the ticket decides it: the only code-page words in it are about EBCDIC key collation (rules 15/16), which plausibly invite the wrong guess.
Why it matters. A port's charset is a deployment fact, not something a model should guess: the estate's data may be EBCDIC on the mainframe and ASCII or UTF-8 after migration (#3815 declared encodings). A wrong guess is a whole-program defect that a thin case might not catch.
Fix:
The ticket states the records' code page as configuration: a generated DataCharset (or CobolRecords.CHARSET) bound to the target config / the case's data_encoding. A rule says every record is read and written through it, never Charset.forName(...) in a port.
The harness sets it from the case's data encoding, so a port that hard-codes a charset fails the proof on a non-Latin-1 case (e.g. a cp277 or UTF-8 multicultural case).
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
#4060: the records' code page is declared once, generated, stated in …