Skip to content

PICTURE SYMBOL 'U' currency mis-sizes the schema: UUU,UU9.99 -> DECIMAL(3, 2) #3910

Closed

Description

@squid-protocol

With CURRENCY SIGN IS 'EUR ' WITH PICTURE SYMBOL 'U', a money field PIC UUU,UU9.99 becomes DECIMAL(3, 2) in the schema and the Spring entity instead of DECIMAL(7, 2). parse_pic_precision only treats Unicode currency characters as floating currency, not the declared symbol letter. The record layout's 43 bytes are right; only the precision is wrong (7 schema cells).

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
    schema
    on Sep 27, 2026
  2. squid-protocol commented on Sep 27, 2026

    @squid-protocol
    OwnerAuthor

    #3834 part 2 (the Cultural Gauntlet's India slice) reproduces this with the rupee: CURRENCY SIGN IS 'INR ' WITH PICTURE SYMBOL 'I', III,II9.99 -> DECIMAL(3, 2) (want 7, 2), and CURRENCY SIGN IS 'Rs' WITH PICTURE SYMBOL 'K', lakh-grouped KK,KK,KK9.99 -> DECIMAL(3, 2) (want 8, 2), in every page and the utf8 control (ledgered as currency_inr|*|schema, currency_rs_lakh|*|schema). So it is any PICTURE SYMBOL, not U alone.

    (Note for the rupee: the symbol cannot be R -- IBM and GnuCOBOL reserve it, CR being a PICTURE symbol; GnuCOBOL 3 says "invalid character 'R' in currency symbol".)

    🤖 Generated with Claude Code

  3. added 3 commits that reference this issue on Sep 27, 2026
  4. added
    status: pending-release
    on Sep 28, 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

    buglegacy-modernizationpriority: mediumschemastatus: pending-release

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions