You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Locale-dependent formatting: String.format / toUpperCase / toLowerCase without Locale.ROOT in generated code and the reference port #3823
String.format("%d") prints localised digits. Probe on JDK 17: ar-EG gives G٠٠٠٧V00; fa-IR, mr-IN, bn-BD, my-MM and th-TH-u-nu-thai all give non-ASCII digits. %.2f gives 1234,50 under de-DE.
Turkish casing: "PINK".toLowerCase() gives pınk.
Where:
cobol_to_java_batch_forge.py:444: String.format("G%04dV00", …). latest() matches G\d{4}V00, and Java's \d is ASCII-only, so a generation written with Arabic-Indic digits is never found (inferred, not run).
The reference port tests/equivalence/carddemo-intcalc/port/service/Cbact04cService.java:198,202,218.
cobol_to_java_screen_forge.py:242 (toLowerCase of the colour class).
call_forge.py:340 and batch_forge.py:487,529 (toUpperCase).
Test: Run carddemo-intcalc with -Duser.language=ar -Duser.country=EG. Expected: identical output. Also run the screens under tr-TR.
Fix:
Pass Locale.ROOT to every format and case-mapping call in the templates and the exemplar.
Add a porting rule.
Pin the locale in the generated pom / application.yml, and run the harness under a hostile locale.
(The Python engine already folds ı/i̇: rule_prefilter.py:168.)
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.
Activity
#3823: generated Java formats and case-maps with Locale.ROOT (#3841)
#3834 (part 2): the Cultural Gauntlet's India slice -- cp1140, rupee …
#4006: START's INTERVAL / TIME text is formatted in Locale.ROOT (#3823)
Fix #4006: CICS harness models interval control (START/RETRIEVE/CANCE…