Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Trouble with locale #21

Copy link
Copy link
@natewarr

Description

@natewarr
Issue body actions

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.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.