Skip to content

Regional compiler and DB2 options not captured: INTDATE, YEARWINDOW, ARITH, TRUNC, NUMPROC, DSNHDECP DATE/TIME format, DECIMAL=COMMA #3828

Closed

Description

@squid-protocol

What: CBL/PROCESS options and the DB2 subsystem profile are never read.

  • FUNCTION INTEGER-OF-DATE differs under Lilian vs ANSI.
  • A DB2 DATE fetched on an EUR-format system reads 26.09.2026, but the generated LocalDate mapping assumes ISO.
  • PostgreSQL's default DateStyle reads '01.02.2026' as 2 January. Plausible, not probed.
  • The harness always runs with US/ISO defaults, so it passes regardless.

Fix: A per-program options fact and a DB2 subsystem-profile config, passed to both harness sides.

Found by a cultural-assumptions audit (2026-09-26): confirmed in code or by probe (JDK 17 locales, IBM code-page decoding, the harness's GnuCOBOL image) unless marked plausible.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    legacy-modernization
    on Sep 26, 2026
  2. added a commit that references this issue on Sep 27, 2026
  3. squid-protocol commented on Sep 27, 2026

    @squid-protocol
    OwnerAuthor

    Good one-off for a Claude cloud session (flagged 2026-09-27 by the orchestrating session; the agy fleet is not taking it).

    Why this issue: it is self-contained and design-shaped rather than a mechanical swap, and nothing else in the milestone is touching the same code right now. The fleet is working #3814 (identifiers, remaining languages), #3822 (collation), #3824 (time zones), #3827 (decimal comma), and #3829 (input dates). Avoid those files where possible.

    Suggested scope for one PR:

    1. A per-program compiler-options fact. Read CBL / PROCESS cards (INTDATE(ANSI|LILIAN), YEARWINDOW, ARITH, TRUNC, NUMPROC) into a fact, the way gitgalaxy/core/special_names.py records SPECIAL-NAMES (Currency signs in PICTURE: £ € ¥ and CURRENCY SIGN / PICTURE SYMBOL mis-size or drop fields; the answer key shares the blind spot #3820).
    2. Wire culture.db2_date_format. It lives in gitgalaxy/tools/cobol_to_java/java_target.py, marked TODO(#3828). Wire it into the DB2 forge's character-date mapping (cobol_to_java_db2_forge.py) and into a porting rule.
    3. Pass the options to both harness sides. Use the harness in tests/tools/equivalence*.py, e.g. -fintrinsics / INTDATE for GnuCOBOL. Default behaviour must stay unchanged.
    4. Tests. INTEGER-OF-DATE under LILIAN vs ANSI, and an EUR-format DB2 date 26.09.2026 round-trip.

    Before opening the PR, run python tests/tools/pr_gates.py. Golden masters must stay byte-identical unless the change is meant to move them.

  4. squid-protocol commented on Sep 27, 2026

    @squid-protocol
    OwnerAuthor

    Update 2026-09-27: this is now being taken by a subagent of the local milestone session (Western Europe region push). A Claude cloud session should NOT pick it up -- take #3816's single-byte Western Europe slice instead (see the comment there).

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

    enhancementlegacy-modernization

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions