Skip to content

CREACC: pin Locale.ROOT on DateTimeFormatter.ofPattern("ddMMyyyy") so PROCTRAN.DESCRIPTION stays ASCII-stable #16

@a2chang

Description

@a2chang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions