Skip to content

Cultural Gauntlet: the test matrix -- source dialect x data code page x runtime locale/TZ x DB collation x input data #3834

Closed

Description

@squid-protocol

The cultural counterpart of the Unicode Gauntlet (#3812).

Dimensions:

  • A, source dialect: plain; DECIMAL-POINT IS COMMA; CURRENCY SIGN '£'; 'EUR ' WITH PICTURE SYMBOL 'U'; trailing €; ROUNDED / ROUNDED MODE NEAREST-EVEN; INTDATE(LILIAN).
  • B, data code page: CP037, CP273, CP277, CP278, CP285, CP297, each × zoned ±0 and key order. Shared with Mainframe byte level: raw EBCDIC code pages (037/1047/277/278/930/939, FB80 splitting) and DBCS COBOL (PIC N/G, SO/SI) #3816.
  • C, runtime (Java side): en-US, tr-TR, ar-EG, th-TH-u-nu-thai, de-DE, each × TZ UTC, Asia/Kolkata, and Europe/Berlin on a daylight-saving day.
  • D, target DB collation: H2, PostgreSQL C, PostgreSQL en_US.UTF-8, MySQL ai_ci.
  • E, input data: mixed-case, national-letter and punctuation keys; rounding ties; EUR/USA DB2 dates; DATUM / FECHA fields; foreign or full-width digits in numeric input.

Pass criterion: output identical to the declared production behaviour, not only COBOL-equals-Java. A×B and C×D form a minimum useful grid of about 40 runs.

CI: a ratchet baseline, like the Unicode Gauntlet's.

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
    priority: high
    on Sep 26, 2026
  2. added 3 commits that reference this issue on Sep 27, 2026
  3. squid-protocol commented on Sep 27, 2026

    @squid-protocol
    OwnerAuthor

    Part 2 (the India slice) is merged in #3936. It adds:

    After #3935:

    • 437 of 469 cells pass. India: 150 of 168, with 18 recorded as known failures.
    • The generated Java behaves the same under every locale and zone: amounts, edited fields, lakh pictures, and dates carrying +0530.

    Remaining known failures:

    Still to do for #3834: dimension D (DB collation) and E (input data), and more runtime locales (tr-TR, ar-EG, th-TH).

    🤖 Generated with Claude Code

  4. added a commit that references this issue on Sep 28, 2026
  5. added
    status: pending-release
    on Sep 28, 2026
  6. squid-protocol commented on Sep 28, 2026

    @squid-protocol
    OwnerAuthor

    All five dimensions are covered, in three merged parts (tests/tools/cultural_gauntlet.py, ratchet baseline in tests/cultural_gauntlet/):

    Bugs it found:

    Not done (follow-ups if wanted): MySQL executed; the seed cells run end to end under GnuCOBOL.

    🤖 Generated with Claude Code

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-modernizationpriority: highstatus: pending-release

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions