Skip to content

Trouble with locale #21

Description

@natewarr

When building this image, locale def returns this to stderr:

LC_MONETARY: value of field int_curr_symbol' has wrong length
No definition for LC_PAPER category found
No definition for LC_NAME category found
No definition for LC_ADDRESS category found
No definition for LC_TELEPHONE category found
No definition for LC_MEASUREMENT category found
No definition for LC_IDENTIFICATION category found`

This line of code running from within the JVM fails to format the number with a dollar sign, as expected:

BigDecimal subTotalAmount = 1.00
NumberFormat.getCurrencyInstance(Locale.US).format(subTotalAmount)

If I run this same code with LANG=C (the alpine default), the number works correctly.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions