Skip to content

Generated EbcdicDecoderUtil ignores the declared code page (hard-codes Cp1047) #3908

Closed

Description

@squid-protocol

cobol_to_java_decoder_forge.py:35 emits Charset.forName("Cp1047") whatever the conversion's data.code_page says. A cp037 / cp273 / cp277 / cp278 / cp285 / cp297 estate's data is decoded with the wrong table, so national letters and [ ] ! ^ | come out wrong. The generated CobolRecords sign table already follows the page; the decoder should too (43 decoder cells, including the cp037 control).

Found by the Cultural Gauntlet (#3834 part 1, PR #3907); the failing cells are ledgered in tests/cultural_gauntlet/baseline.txt — a fix removes them (python tests/tools/cultural_gauntlet.py --full --update-baseline).

🤖 Generated with Claude Code

Activity

  1. added
    bug
    legacy-modernization
    data-integrity
    priority: high
    on Sep 27, 2026
  2. added a commit that references this issue on Sep 27, 2026
  3. added
    status: pending-release
    on Sep 27, 2026
  4. added a commit that references this issue on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdata-integritylegacy-modernizationpriority: highstatus: pending-release

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions