Skip to content

COBOL engine: a DBCS literal VALUE G'…' is recorded as the value G #4354

Closed

Description

@squid-protocol

Problem

The VALUE reader takes the G prefix of a DBCS literal as a bare word, so value_literal is 'G'. N'…' and X'…' are likely affected the same way.

Evidence

01 漢字欄 PIC G(4) VALUE G'漢字欄名'. (KYUYO01.cbl:12, cp930, estate-crucible v0.3.0) gets value_literal 'G'. Horror H-0042.

Acceptance criteria

  • G / N / X-prefixed literals are read as literals, prefix included.
  • Regression tests for each prefix.

Related: #3816, #4277 (VALUE reader).

Found by estate-crucible v0.3.0 phase 2 (#4317, #3988): planted in squid-protocol/estate-crucible, scored by tests/tools/estate_crucible.py on main (scorecard in #4347). The horror flips to pass when this is fixed.

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    priority: low
    on Oct 4, 2026
  2. added a commit that references this issue on Oct 5, 2026
  3. added
    scope:frontier
    on Oct 16, 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

    bugcore-enginelegacy-modernizationpriority: lowscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions