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

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

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: