Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4228

Fallback locale should be ROOT, and not Locale.getDefault()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Minor
    • None
    • 9.0.0.Alpha1
    • CLI, Management
    • None

    Description

      While investigating WFLY-3723, I found out that when a bundle for a specified locale can not be found, Wildfly code fallbacks to Locale.getDefault, rather than use the Locale.ROOT. This is a side effect on non-english system, because there is no bundle for "en_US", and root should be used in this case.

      I proposed to fix it by replacing all relevant occurences of Locale.getDefault() by Locale.ROOT.

      Attachments

        Issue Links

          Activity

            People

              rpelisse@redhat.com Romain Pelisse
              rpelisse@redhat.com Romain Pelisse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: