Surfaced during PR #13 round-3 review (low).
DateTimeFormatter.ofPattern("ddMMyyyy") without an explicit locale can emit non-ASCII digits under some default JVM locales, which would corrupt the COBOL-shaped PROCTRAN.DESCRIPTION text written by CREACC. Pin Locale.ROOT on the static formatter (and audit the controller-side date formatter likewise).
Files:
src/main/java/com/augment/cbsa/repository/CreaccRepository.java (line 29)
src/main/java/com/augment/cbsa/web/creacc/CreaccController.java (line 30)
While here, audit the other migrated programs' formatters (CRECUST, INQACC, INQCUST) and apply the same fix consistently.
Surfaced during PR #13 round-3 review (low).
DateTimeFormatter.ofPattern("ddMMyyyy")without an explicit locale can emit non-ASCII digits under some default JVM locales, which would corrupt the COBOL-shapedPROCTRAN.DESCRIPTIONtext written by CREACC. PinLocale.ROOTon the static formatter (and audit the controller-side date formatter likewise).Files:
src/main/java/com/augment/cbsa/repository/CreaccRepository.java(line 29)src/main/java/com/augment/cbsa/web/creacc/CreaccController.java(line 30)While here, audit the other migrated programs' formatters (CRECUST, INQACC, INQCUST) and apply the same fix consistently.